From 9ca7cf7c6d6812effc130afa8532aa09245afd40 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sun, 15 Jul 2018 06:38:56 +0100 Subject: [PATCH] Replace htop with glances. --- .ansible/roles/mac_desktop/vars/main.yaml | 2 +- .bashrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ansible/roles/mac_desktop/vars/main.yaml b/.ansible/roles/mac_desktop/vars/main.yaml index 53d5630..46a974e 100644 --- a/.ansible/roles/mac_desktop/vars/main.yaml +++ b/.ansible/roles/mac_desktop/vars/main.yaml @@ -8,7 +8,7 @@ homebrew_brew_items: - curl - git - coreutils - - htop + - glances - ipcalc - mas - nmap diff --git a/.bashrc b/.bashrc index 1a57fb3..95c4dcc 100755 --- a/.bashrc +++ b/.bashrc @@ -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 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 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 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 }