diff --git a/etc/config.sh/aliases b/etc/config.sh/aliases index 0db8b2c92..a6bd79ab6 100644 --- a/etc/config.sh/aliases +++ b/etc/config.sh/aliases @@ -71,7 +71,7 @@ alias run='cd $FOAM_RUN' # Refresh the environment # ~~~~~~~~~~~~~~~~~~~~~~~ # For backward-compatibility unalias wmRefresh if it is defined as an alias -if command -V wmRefresh | head -1 | grep -q "function" +if command -V wmRefresh 2> /dev/null | head -1 | grep -q "function" then unset wmRefresh else