mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-04-10 18:21:51 +00:00
Specified external call to cd for fish (#146)
This commit is contained in:
parent
d5818ff0c3
commit
70c350ff96
@ -10,15 +10,15 @@
|
|||||||
# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
|
# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
|
||||||
function __zoxide_pwd
|
function __zoxide_pwd
|
||||||
{%- if resolve_symlinks %}
|
{%- if resolve_symlinks %}
|
||||||
pwd -P
|
command pwd -P
|
||||||
{%- else %}
|
{%- else %}
|
||||||
pwd -L
|
command pwd -L
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
end
|
end
|
||||||
|
|
||||||
# cd + custom logic based on the value of _ZO_ECHO.
|
# cd + custom logic based on the value of _ZO_ECHO.
|
||||||
function __zoxide_cd
|
function __zoxide_cd
|
||||||
cd $argv
|
command cd $argv
|
||||||
{%- if echo %}
|
{%- if echo %}
|
||||||
and __zoxide_pwd
|
and __zoxide_pwd
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user