10 lines
273 B
Fish
Raw Normal View History

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