diff --git a/.config/shell/functions b/.config/shell/functions index 71337e3..a7baaa7 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -52,7 +52,7 @@ b() { esac } 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' diff --git a/.config/shell/git b/.config/shell/git index 081d04d..52d39af 100644 --- a/.config/shell/git +++ b/.config/shell/git @@ -46,7 +46,7 @@ alias gfs='git fetch && git status -s -b' alias glu='git pull upstream $(git curbranch)' 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 gpf='gt push --force-with-lease' +alias gpf='git push --force-with-lease' alias grh='git reset HEAD~' alias grh!='git reset --hard' alias grhr='git reset --hard $(git rev-parse --abbrev-ref --symbolic-full-name @{u})'