Replace htop with glances.

This commit is contained in:
Scott Wallace 2018-07-15 06:38:56 +01:00
parent 27b4513f07
commit 9ca7cf7c6d
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ homebrew_brew_items:
- curl - curl
- git - git
- coreutils - coreutils
- htop - glances
- ipcalc - ipcalc
- mas - mas
- nmap - nmap

View file

@ -122,7 +122,7 @@ function datafart() { curl --data-binary @- datafart.com; } && export -f datafar
function space() { du -ahx --max-depth=1 | sort -h; } && export -f space function space() { du -ahx --max-depth=1 | sort -h; } && export -f space
if ! alias ll >/dev/null 2>&1; then function ll() { ls -l ${@}; } && export -f ll; fi if ! alias ll >/dev/null 2>&1; then function ll() { ls -l ${@}; } && export -f ll; fi
[[ ! -x $(which psgrep 2>/dev/null) ]] && function psgrep() { ps -ef | grep ${@} | grep -v ${$}; } && export -f psgrep [[ ! -x $(which psgrep 2>/dev/null) ]] && function psgrep() { ps -ef | grep ${@} | grep -v ${$}; } && export -f psgrep
[[ -x $(which htop 2>/dev/null) ]] && function top() { sudo htop; } && export -f top [[ -x $(which glances 2>/dev/null) ]] && function top() { glances; } && export -f top
[[ -x $(which gdu 2>/dev/null) ]] && function du() { gdu ${@}; } && export -f du [[ -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 $(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 /bin/ps && -x $(which pstree 2>/dev/null) ]] && function ps() { if [[ ${1} =~ 'f' ]]; then pstree; else /bin/ps ${@}; fi }