oh-my-fish/plugins/z/z.load
2013-11-20 08:20:34 -02:00

10 lines
272 B
Fish

if test -z "$Z_SCRIPT_PATH"
set -x Z_SCRIPT_PATH /usr/local/etc/profile.d/z.sh
end
function __check_z --on-variable PWD --description 'Setup z on directory change'
status --is-command-substitution; and return
bash -c "source $Z_SCRIPT_PATH; _z --add `pwd -P`"
end