mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
added all shell configuration files
This commit is contained in:
31
shell/git.sh
Executable file
31
shell/git.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# Git
|
||||
#
|
||||
|
||||
# Author name
|
||||
export GIT_AUTHOR_NAME="`git config user.name`"
|
||||
export GIT_AUTHOR_EMAIL="`git config user.email`"
|
||||
|
||||
# Aliases
|
||||
alias g="git"
|
||||
alias gi="git"
|
||||
alias ga="git add"
|
||||
alias gs="git status"
|
||||
alias gai="git add -i"
|
||||
alias gp="git push"
|
||||
alias gf="git fetch"
|
||||
alias gd="git difftool"
|
||||
alias gpl="git pull --rebase"
|
||||
alias gix="gitx"
|
||||
alias gx="gitx"
|
||||
|
||||
# Git Completion
|
||||
if [ -f "/usr/local/etc/bash_completion.d/git-completion.bash" ]; then
|
||||
source "/usr/local/etc/bash_completion.d/git-completion.bash"
|
||||
fi
|
||||
|
||||
# Only needed for Bash. Zsh is much smarter with it's auto-completion ^_^
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
complete -o default -o nospace -F _git g
|
||||
complete -o default -o nospace -F _git gi
|
||||
fi
|
||||
Reference in New Issue
Block a user