This worked better for me as `if [ (count $cmd) -lt 3  -a $cmd[2] = 'stash' ]; return 0; end; return 1`.