-
|
Hey so just starting using fish, and the following which worked fine in bash: does not work in fish - I tried fixing (fishing?) it, but I could not. Perhaps someone who knows fish could fix it and add it to the 'integrations' page? thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Have you seen https://github.com/gokcehan/lf/blob/master/etc/lfcd.fish? You are welcome to link to it from the wiki. |
Beta Was this translation helpful? Give feedback.
-
|
ah yes thanks - I have added it to the wiki, but I'd like to add an alias so that lfcd will takeover lf, just like in bash. However, doing that breaks things and I get this output: any idea what's going on here? It would be a shame that lf coulnd't be used with this functionality in fish with the original name. also, if I may disturb you just a little bit longer, what does this command do, that is suggested? I fail to see it. |
Beta Was this translation helpful? Give feedback.
To fix your alias, you need to replace
lf -last-dir-path=$tmp $argvbycommand lf -last-dir-path=$tmp $argvin the fish script.The
bind \coline would makeCtrl-Oopenlfcdin the fish prompt. This even allows you to change the current directory in the middle of typing a command.I will hopefully make a PR to incorporate both of these things into the scripts at some point.