From baa9ea8ec894c6510cc3e673dceec27ea05dab6a Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sat, 5 Aug 2017 16:34:49 +0100 Subject: [PATCH] Add 'tree' and an alias. --- .Brewfile | 1 + .bashrc | 1 + 2 files changed, 2 insertions(+) diff --git a/.Brewfile b/.Brewfile index 3ccf0e7..2783c5d 100644 --- a/.Brewfile +++ b/.Brewfile @@ -15,6 +15,7 @@ brew "pv" brew "python3" brew "rename" brew "task" +brew "tree" brew "vim" cask "alfred" diff --git a/.bashrc b/.bashrc index 6e92020..26d6dc1 100755 --- a/.bashrc +++ b/.bashrc @@ -123,6 +123,7 @@ if ! alias ll >/dev/null 2>&1; then function ll() { ls -l ${@}; } && export -f l [[ -x $(which gdu 2>/dev/null) ]] && function du() { gdu ${@}; } && export -f du [[ -x $(which gsort 2>/dev/null) ]] && function sort() { gsort ${@}; } && export -f sort [[ -x /bin/ps && -x $(which pstree 2>/dev/null) ]] && function ps() { if [[ ${1} =~ 'f' ]]; then pstree; else /bin/ps ${@}; fi } +[[ -x $(which tree 2>/dev/null) ]] && alias tree="tree -AQh --du" #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------