Commit 129e13db authored by Bruno Pinto's avatar Bruno Pinto

initial support for z: "https://github.com/rupa/z"

parent 644c85ad
#
# Source a .rvmrc file in a directory after changing to it, if it exists.
# To disable this feature, set rvm_project_rvmrc=0 in $HOME/.rvmrc
#
function cd --description "Change directory"
redefine_function 'cd' "$__fish_datadir/functions/cd.fish" '
function cd --description "Change working directory"
old_cd "$argv"
bash -c "source /usr/local/etc/profile.d/z.sh; _z --add `pwd -P`"
end
'
cd "$argv"
end
function z
cd (bash -c 'source /usr/local/etc/profile.d/z.sh; _z $0; echo $PWD' $argv)
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