diff --git a/etc/config.sh/aliases b/etc/config.sh/aliases index 974208f02e..0db8b2c921 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 declare -f wmRefresh > /dev/null +if command -V wmRefresh | head -1 | grep -q "function" then unset wmRefresh else