From dfb5184bf12f7461584d086cc94348ed3a797fdd Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Sat, 17 Aug 2019 00:24:10 +0200 Subject: [PATCH] add ncdu nice disk usage --- Brewfile | 2 ++ centos.sh | 3 +++ dot_zsh_aliases | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Brewfile b/Brewfile index 160e876..45f9a11 100644 --- a/Brewfile +++ b/Brewfile @@ -88,3 +88,5 @@ brew "glances" brew "fzf" # Diff-so-fancy brew "diff-so-fancy" +# add nice disk usage +brew "ncdu" diff --git a/centos.sh b/centos.sh index daa8a85..55c5c74 100644 --- a/centos.sh +++ b/centos.sh @@ -202,3 +202,6 @@ exec $SHELL # Install diff-so-fancy curl https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy > /usr/local/bin/diff-so-fancy && chmod +x /usr/local/bin/diff-so-fancy + +# Install nice disk usage +yum -y install ncdu diff --git a/dot_zsh_aliases b/dot_zsh_aliases index aa921e7..e7a24c8 100644 --- a/dot_zsh_aliases +++ b/dot_zsh_aliases @@ -72,7 +72,8 @@ alias diff='colordiff' alias cp='cp -i' # confirmation before overwrite # alias mv='mv -i' # confirmation before overwrite alias df='df -H' -alias du='du -ch' +alias du='ncdu --color dark -rr -x --exclude .git --exclude node_modules' +#alias du='du -ch' alias headers='curl -I --compress' # Find out if remote server supports gzip / mod_deflate or not # alias hist='history' alias path='echo -e ${PATH//:/\\n}' # Explode and display current PATH