From 133fc23466d61cf87ff8c28a5b509ac1b0117813 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 24 Apr 2017 09:07:00 +0100 Subject: [PATCH] Have OS X ps have a forest-style output. --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 0b3ba28..145e705 100755 --- a/.bashrc +++ b/.bashrc @@ -128,6 +128,7 @@ if ! alias ll >/dev/null 2>&1; then function ll() { ls -l ${@}; } && export -f l [[ -x $(which htop 2>/dev/null) ]] && function top() { sudo htop; } && export -f top [[ -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 } #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------