]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/sys.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 5 Jan 2018 02:21:39 +0000 (02:21 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 5 Jan 2018 02:21:39 +0000 (02:21 +0000)
etc/profile.d/sys.sh

index b253cbc8e669e18eafeacac4cdc60d6121774eba..04815f1d9fd3ea93b2b0efd6e49f4b5f8ba13c58 100644 (file)
@@ -100,8 +100,8 @@ sys_watch() {
        [ -z "$opt" ] && opt="-d"
 
        shopt -s expand_aliases;
-       export -f $(typeset -f | awk '/^[a-z]+[a-zA-Z0-9_]+ \(\)/{print $1}')
-       watch --no-title $opt sys_activity
+       #export -f $(typeset -f | awk '/^[a-z]+[a-zA-Z0-9_]+ \(\)/{print $1}')
+       watch --no-title $opt ". $NB_ROOT/etc/profile.d/sys.sh && sys_activity"
 # NB 08.08.17   export -f sys_activity
 # NB 08.08.17   watch --no-title $opt bash -c "sys_activity"
 }