Browse Source

Let's try something with git

master
Samuel FORESTIER 3 years ago
commit
7985c8d736
No known key found for this signature in database GPG Key ID: 4B6FA04B1AC95DD4
5 changed files with 200 additions and 0 deletions
  1. +112
    -0
      .bashrc
  2. +21
    -0
      .dotfiles/LICENSE
  3. +28
    -0
      .editorconfig
  4. +19
    -0
      .gitconfig
  5. +20
    -0
      .nanorc

+ 112
- 0
.bashrc View File

@@ -0,0 +1,112 @@
# .bashrc -- Samuel FORESTIER


# Some HISTORY options
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
HISTCONTROL=ignoredups

# Check the window size after each command
# If necessary, update the values of LINES and COLUMNS
shopt -s checkwinsize

# Match hidden files too with `*` wildcard
shopt -s dotglob


# Colors support for `ls`, `dir`-like and `grep`-like commands
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi


# Colored GCC warnings and errors (important !)
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'


# BASH auto-completion
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi


# `ll` alias for `ls` !
alias ll='ls -lAh'

# Let's set a colorful prompt...
PS1='\
\[\033[00m\][\
\[\033[31m\]\u\
\[\033[00m\]@\
\[\033[35m\]\h\
\[\033[00m\]:\
\[\033[34m\]\w\
\[\033[00m\]]\
\[\033[00m\]\$\
'

# ... and a colorful pager
export PAGER="/usr/bin/most -s"


# Hello honey
echo -e "\033[1;35m"
case $(($RANDOM % 2)) in
'0')
archey
;;

'1')
cowsay -f kiss "Je t'aime..."

case $(($RANDOM % 3)) in
'0')
figlet "... mon coeur < 3"
;;

'1')
figlet "... ma Cherie < 3"
;;

'2')
figlet "... mon amour < 3"
;;
esac
;;
esac


# Macro for archives extraction
extract()
{
if [[ -f $1 ]]; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "Don't know how to extract '$1'..." ;;
esac

else
echo "'$1' is not a valid file !"
fi
}

+ 21
- 0
.dotfiles/LICENSE View File

@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Samuel FORESTIER

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

+ 28
- 0
.editorconfig View File

@@ -0,0 +1,28 @@
# .editorconfig -- Samuel FORESTIER


root = true

[*]
charset = utf-8
tab_width = 4
indent_size = 4
end_of_line = lf
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.html]
indent_style = space

[*.py]
indent_style = space

[**/archey]
indent_style = space

[*.yml]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

+ 19
- 0
.gitconfig View File

@@ -0,0 +1,19 @@
# .gitconfig -- Samuel FORESTIER


[user]
name = Samuel FORESTIER
email = sam.forestier@gmail.com
signingkey = 4B6FA04B1AC95DD4
[core]
fileMode = false
[merge]
ff = false
[pull]
rebase = preserve
[status]
submoduleSummary = true
[push]
followTags = true
[tag]
forceSignAnnotated = true

+ 20
- 0
.nanorc View File

@@ -0,0 +1,20 @@
# .nanorc -- Samuel FORESTIER


set autoindent
set casesensitive
set historylog
set justifytrim
set linenumbers
set locking
set mouse
set nowrap
set positionlog
set smarthome
set smooth
set suspend
set tabsize 4

include "/usr/share/nano/*.nanorc"

bind ^S savefile main

Loading…
Cancel
Save