diff --git a/git/aliases.zsh b/git/git.zsh similarity index 79% rename from git/aliases.zsh rename to git/git.zsh index edfc45c..a0f2c2e 100644 --- a/git/aliases.zsh +++ b/git/git.zsh @@ -9,4 +9,10 @@ alias gs='git stash save' alias gsp='git stash pop' alias gmv='git mv' alias grm='git rm' +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" + +function git_rename() { + git mv $1 "${2}-" + git mv "${2}-" $2 +}