From: Nicolas Boisselier Date: Wed, 22 Feb 2017 16:39:56 +0000 (+0000) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=16fd1ee6b3331e329e1cb4271d206877042f5a7c;p=nb.git etc/profile.d/sys.sh --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index 60b93cfd..7ff120b9 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -7,15 +7,6 @@ sys_is_vm() { grep -q ^flags.*\ hypervisor /proc/cpuinfo && echo "This machine is a VM" } -sys_watch() { - local opt="$@" - [ -z "$opt" ] && opt="-d" - - export -f sys_activity - watch --no-title $opt sys_activity - #watch --no-title $opt bash -c "sys_activity" -} - sys_logs() { true } @@ -68,3 +59,13 @@ sys_activity() { export -f sys_activity export -f sys_logs ) 2> /dev/null | true + +sys_watch() { + local opt="$@" + [ -z "$opt" ] && opt="-d" + + export -f sys_activity + watch --no-title $opt sys_activity + #watch --no-title $opt bash -c "sys_activity" +} +