From 3af2d0703c46d824a08be6c77e103d7bb3bfe412 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Sat, 27 Jun 2020 15:27:58 +0200 Subject: [PATCH] Fix some aliases --- .config/shell/functions | 2 +- .config/shell/git | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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})'