Various changes
+ added hist to show most used commands + changed vim colorscheme back to my own + added g() function thanks to r00k
This commit is contained in:
11
git/git.zsh
11
git/git.zsh
@@ -1,5 +1,4 @@
|
||||
# git aliases
|
||||
alias g='git'
|
||||
alias ga='git add'
|
||||
alias gb='git branch'
|
||||
alias gl='git pull'
|
||||
@@ -33,3 +32,13 @@ function git-rename() {
|
||||
git mv $1 "${2}-"
|
||||
git mv "${2}-" $2
|
||||
}
|
||||
|
||||
function g() {
|
||||
if [[ $# > 0 ]]; then
|
||||
# if there are arguments, send them to git
|
||||
git $@
|
||||
else
|
||||
# otherwise, run git status
|
||||
git s
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user