oh-my-fish/plugins/z/z.load

10 lines
272 B
Fish
Raw Normal View History

2013-11-20 10:20:34 +00:00
if test -z "$Z_SCRIPT_PATH"
set -x Z_SCRIPT_PATH /usr/local/etc/profile.d/z.sh
end
2013-03-02 06:46:48 +00:00
function __check_z --on-variable PWD --description 'Setup z on directory change'
status --is-command-substitution; and return
2013-11-20 10:20:34 +00:00
bash -c "source $Z_SCRIPT_PATH; _z --add `pwd -P`"
2013-03-02 06:46:48 +00:00
end