function tere set -f result $(command tere $argv) if test -n $result cd $result end end