first commit
This commit is contained in:
commit
af4b2ae6ac
15
.bash_aliases
Normal file
15
.bash_aliases
Normal file
@ -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
|
||||
|
37
.bashrc
Normal file
37
.bashrc
Normal file
@ -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
|
||||
|
37
.bashrc~
Normal file
37
.bashrc~
Normal file
@ -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
|
||||
|
38
.gitconfig
Normal file
38
.gitconfig
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user