Added some completion scripts and updated some zsh config
This commit is contained in:
5
git/completion.sh
Normal file
5
git/completion.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
completion=/usr/local/etc/bash_completion.d/git-completion.bash
|
||||
|
||||
if test -f $completion; then
|
||||
source $completion
|
||||
fi
|
||||
@@ -15,9 +15,10 @@ alias grn='git_rename'
|
||||
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
|
||||
|
||||
alias sub-pull='git submodule foreach git pull origin master'
|
||||
|
||||
# a simple git rename file function
|
||||
# git does not track case-sensitive changes to a filename.
|
||||
function git_rename() {
|
||||
function git-rename() {
|
||||
git mv $1 "${2}-"
|
||||
git mv "${2}-" $2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user