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

10 lines
273 B
Fish
Raw Normal View History

2013-11-20 10:20:34 +00:00
if test -z "$Z_SCRIPT_PATH"
2014-04-22 19:28:21 +00:00
set -gx Z_SCRIPT_PATH /usr/local/etc/profile.d/z.sh
2013-11-20 10:20:34 +00:00
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