mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-26 17:28:46 -05:00
6 lines
234 B
Fish
6 lines
234 B
Fish
|
function fzf-bcd-widget -d 'cd backwards'
|
||
|
pwd | awk -v RS=/ '/\n/ {exit} {p=p $0 "/"; print p}' | tac | eval (__fzfcmd) +m --select-1 --exit-0 $FZF_BCD_OPTS | read -l result
|
||
|
[ "$result" ]; and cd $result
|
||
|
commandline -f repaint
|
||
|
end
|