summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:20:29 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:20:29 +0100
commitec6c924f8791926693a515524b27eb805be50f63 (patch)
tree2018e2599e767adcbf81f021060e1daa4d0dc355 /etc/rc
parente7ad146b035856a747781fa4fb823a24aa3f5842 (diff)
Remove check_com function
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 84af81f..c34fe26 100644
--- a/etc/rc
+++ b/etc/rc
@@ -296,7 +296,7 @@ linux: salias netstat='netstat --program --all --tcp --extend' ||
# less frequent updates when running ncdu via ssh
-[[ -n $SSH_CONNECTION ]] && check_com -c ncdu && alias ncdu='ncdu -q'
+[[ -n $SSH_CONNECTION && -n $commands[ncdu] ]] && alias ncdu='ncdu -q'
alias bc='bc -l'
@@ -489,7 +489,7 @@ source $ZDIR/../provided/includes
# local configuration, not in git
xsource $ZDIR/local
-check_com envstore && eval $(envstore eval)
+[[ -n $commands[envstore] ]] && eval $(envstore eval)
# local configuration, in git
xsource $ZDIR/hosts/$HOST