You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is the expected behavior. The cd history is maintained by the cd function, not the cd builtin. If you replace the standard cd function with your own implementation then it is up to you to mimic the behavior of the standard function (which also includes handling cd -). Run type cd to see the standard implementation (assuming you haven't already redefined it).
How can I resolve this problem?
The simplest solution is to name your cd function something else and remove the builtin prefix. The more complex solution is to use functions -c cd standard_cd then use standard_cd instead of builtin cd in your function.
Hi
I'm using fish-shell 2.7.1 on LinuxMint 18.3 (64 bit) (4.13.0-37-generic).
I used the following function to list files after changing directory.
By the function, I was able to display file list on current directory. But commands
dirh
,prevd
, andnextd
did not work as usual.I checked this function by turning it on and off, and it seemed that it was caused by
builtin cd
. Below is the result ofbuiltin cd
todirh
.Normal cd
builtin cd
How can I resolve this problem?
Thanks.
The text was updated successfully, but these errors were encountered: