Fix some aliases

This commit is contained in:
xerus2000 2020-06-27 15:27:58 +02:00
parent ac8927b994
commit 3af2d0703c
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ b() {
esac esac
} }
cdd() { cd "$@" 2>/dev/null || cd "$(dirname "$1")" "${@:2}" } cdd() { cd "$@" 2>/dev/null || cd "$(dirname "$1")" "${@:2}" }
tr() { tree -C -a -L 2 "$@" | less } tr() { tree -a -L 2 --du -h -C "$@" | less }
alias sc='sudo systemctl' alias sc='sudo systemctl'

View File

@ -46,7 +46,7 @@ alias gfs='git fetch && git status -s -b'
alias glu='git pull upstream $(git curbranch)' alias glu='git pull upstream $(git curbranch)'
alias gluu='git pull upstream $(git curbranch) && git push --no-verify' alias gluu='git pull upstream $(git curbranch) && git push --no-verify'
alias gcap!='git commit --all --amend --no-edit && git push --force-with-lease' alias gcap!='git commit --all --amend --no-edit && git push --force-with-lease'
alias gpf='gt push --force-with-lease' alias gpf='git push --force-with-lease'
alias grh='git reset HEAD~' alias grh='git reset HEAD~'
alias grh!='git reset --hard' alias grh!='git reset --hard'
alias grhr='git reset --hard $(git rev-parse --abbrev-ref --symbolic-full-name @{u})' alias grhr='git reset --hard $(git rev-parse --abbrev-ref --symbolic-full-name @{u})'