From 16fd1ee6b3331e329e1cb4271d206877042f5a7c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 22 Feb 2017 16:39:56 +0000 Subject: [PATCH] etc/profile.d/sys.sh --- etc/profile.d/sys.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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" +} + -- 2.47.3