Commit 62928f9a authored by Bruno Pinto's avatar Bruno Pinto

allowing z plugin to use a custom path

parent 81c57572
function z
cd (bash -c 'source /usr/local/etc/profile.d/z.sh; _z $0; echo $PWD' $argv)
cd (bash -c 'source $Z_SCRIPT_PATH; _z $0; echo $PWD' $argv)
end
if test -z "$Z_SCRIPT_PATH"
set -x 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 /usr/local/etc/profile.d/z.sh; _z --add `pwd -P`"
bash -c "source $Z_SCRIPT_PATH; _z --add `pwd -P`"
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment