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 }