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
I use z -e a lot for in scripts to go to directories I rarely cd to, so some folders which are in reality the most used, stay lower down the rankings.
I'd like these directories to be updated in the Z_DATA file, possibly manually through something like z -a $dir. I'd manually call __z_add in the scripts but that relies on the $pwd.
Happy to raise a PR if you think this is worth adding to the core, otherwise I can add it to my own config
The text was updated successfully, but these errors were encountered:
Optional arguments to __z_add that when existent, gets added to the index
A flag -u or -a in z as you suggested, which when set in conjunction with -e, calls _z_add with the result before returning
The reason in conjunction is important is because the directory would otherwise be added twice, once manually, and once by the change in directory. If you don't mind the wait I could do it, but would take me a while.
I use
z -e
a lot for in scripts to go to directories I rarely cd to, so some folders which are in reality the most used, stay lower down the rankings.I'd like these directories to be updated in the Z_DATA file, possibly manually through something like
z -a $dir
. I'd manually call__z_add
in the scripts but that relies on the$pwd
.Happy to raise a PR if you think this is worth adding to the core, otherwise I can add it to my own config
The text was updated successfully, but these errors were encountered: