diff --git a/rc/bashrc b/rc/bashrc index 2038b833..ea822e54 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -923,6 +923,7 @@ transmission-magnet () { transmission-remote -l -t $1 -i | grep magnet } +# Merges the last $1 commits into one git-squash () { git reset --soft HEAD~$1 git commit diff --git a/rc/zshrc b/rc/zshrc index 3a130e93..c4a6a252 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -932,6 +932,7 @@ transmission-magnet () { transmission-remote -l -t $1 -i | grep magnet } +# Merges the last $1 commits into one git-squash () { git reset --soft HEAD~$1 git commit