commit af4b2ae6acde3c9ae12247a139210f96976cd152 Author: Clement Desmidt Date: Mon Apr 11 16:56:48 2016 +0200 first commit diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 0000000..ba9ea06 --- /dev/null +++ b/.bash_aliases @@ -0,0 +1,15 @@ +alias gogit='cd /var/www/git/' +alias gowww='cd /var/www/' + +gg () { + cd /var/www/git/ && cd "$@" && git st +} + +_git_add_complete() { + + COMPREPLY+=( $( ls /var/www/users/cdesmidt/git/ | grep "$2" ) ) + +} + +complete -F _git_add_complete gg + diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..7368162 --- /dev/null +++ b/.bashrc @@ -0,0 +1,37 @@ +alias ll='ls -al' +alias la='ls -A' +alias l='ls -CF' + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +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 + +export VISUAL=vim +export EDITOR="$VISUAL" + +# gitprompt configuration +# INSTALL https://github.com/magicmonty/bash-git-prompt.git +# Set config variables first +GIT_PROMPT_ONLY_IN_REPO=1 + +GIT_PROMPT_SHOW_UPSTREAM=1 +GIT_PROMPT_FETCH_REMOTE_STATUS=1 # uncomment to avoid fetching remote status + +# GIT_PROMPT_START=... # uncomment for custom prompt start sequence +# GIT_PROMPT_END=... # uncomment for custom prompt end sequence + +# as last entry source the gitprompt script +# GIT_PROMPT_THEME=Custom # use custom .git-prompt-colors.sh +GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme +source ~/.bash-git-prompt/gitprompt.sh + +export PATH=~/bin:$PATH + diff --git a/.bashrc~ b/.bashrc~ new file mode 100644 index 0000000..41624c5 --- /dev/null +++ b/.bashrc~ @@ -0,0 +1,37 @@ +alias ll='ls -al' +alias la='ls -A' +alias l='ls -CF' + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +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 + +export VISUAL=vim +export EDITOR="$VISUAL" + +# gitprompt configuration + +# Set config variables first +GIT_PROMPT_ONLY_IN_REPO=1 + +GIT_PROMPT_SHOW_UPSTREAM=1 +GIT_PROMPT_FETCH_REMOTE_STATUS=1 # uncomment to avoid fetching remote status + +# GIT_PROMPT_START=... # uncomment for custom prompt start sequence +# GIT_PROMPT_END=... # uncomment for custom prompt end sequence + +# as last entry source the gitprompt script +# GIT_PROMPT_THEME=Custom # use custom .git-prompt-colors.sh +GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme +source ~/.bash-git-prompt/gitprompt.sh + +export PATH=~/bin:$PATH + diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..656f336 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,38 @@ +[alias] + co = checkout + ci = commit + st = status -s + br = branch + hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short + type = cat-file -t + dump = cat-file -p + pulo = pull origin master + puso = push origin master + rh = reset HEAD + map = log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x1b[31m%an" + +[user] + name = Clement Desmidt + email = clement@desmidt.fr + +[color] + diff = auto + status = auto + branch = auto + interactive = auto + ui = true + pager = true + +[color "status"] + added = green + changed = red bold + untracked = magenta bold + +[color "branch"] + remote = yellow +[i18n] + commitEncoding = utf8 + logOutputEncoding = utf8 +[core] + symlinks = false + diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..6fb573a --- /dev/null +++ b/.vimrc @@ -0,0 +1,4 @@ +set nocompatible +syntax on +highlight Comment ctermfg=Blue +