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

10 lines
273 B
Fish
Raw Normal View History

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