Specified external call to cd for fish (#146)

This commit is contained in:
Carson Riker 2021-02-17 09:05:18 -05:00 committed by GitHub
parent d5818ff0c3
commit 70c350ff96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,15 +10,15 @@
# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
function __zoxide_pwd
{%- if resolve_symlinks %}
pwd -P
command pwd -P
{%- else %}
pwd -L
command pwd -L
{%- endif %}
end
# cd + custom logic based on the value of _ZO_ECHO.
function __zoxide_cd
cd $argv
command cd $argv
{%- if echo %}
and __zoxide_pwd
{%- endif %}