mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-30 04:23:36 +08:00
10 lines
273 B
Fish
10 lines
273 B
Fish
if test -z "$Z_SCRIPT_PATH"
|
|
set -gx 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
|