mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
[split] Move z plugin to oh-my-fish/plugin-z
https://github.com/oh-my-fish/plugin-z
This commit is contained in:
parent
7ead0cd52e
commit
2edb46c3e5
@ -1,3 +0,0 @@
|
|||||||
function z
|
|
||||||
cd (bash -c "source $Z_SCRIPT_PATH; _z $argv; echo \$PWD")
|
|
||||||
end
|
|
@ -1,9 +0,0 @@
|
|||||||
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
|
|
Loading…
Reference in New Issue
Block a user