function fishupd --description "Update fish configuration" if not command -q 'git' echo "Can't find git." return 1 end pushd "$__fish_config_dir" if test -z "$FISHCFGREPO" git pull else git pull "$FISHCFGREPO" end popd end