Custom https://github.com/gokcehan/lf configuration
- in progress
- finished
- no longer continued
lf (https://github.com/gokcehan/lf)
copy lfrc in ~/.config/lf or
git clone git@github.com:JonasLeonhard/lf-config.git ~/.config/lf
and add
# Use lf to switch directories and bind it to ctrl-f
lfcd () {
tmp="$(mktemp)"
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
fi
}
bindkey -s '^f' 'lfcd\n'
to your .zshrc to open lf via ctrl-f.
to see the keybindings. Press "?" when lf is opened.
For the ctrl-f opening .zshrc (https://gist.github.com/LukeSmithxyz/e62f26e55ea8b0ed41a65912fbebbe52)