Fish: Replace ranger with fff; add ncdu binding

This commit is contained in:
Phantop 2019-01-15 18:56:57 -05:00
parent d6712a7b18
commit 16a0e87813
4 changed files with 10 additions and 7 deletions

View File

@ -2,6 +2,7 @@
set -gx D /mnt/LocalDiskD
set -gx fish_user_paths ~/.local/bin /usr/bin /usr/local/bin /bin /usr/sbin /usr/local/sbin /sbin $PLAN9/bin
set -gx ENV .profile
set -gx FFF_CD_FILE ~/.fff_d
# PROGRAM SETTINGS #
set -gx EDITOR nvim

5
.config/fish/functions/f.fish Executable file
View File

@ -0,0 +1,5 @@
# Defined in /tmp/fish.bYrYO7/fff.fish @ line 2
function f
eval $D/Source/fff/fff $argv
cd /(cat ~/.fff_d)
end

View File

@ -1,4 +0,0 @@
# Defined in /tmp/fish.Dmucz1/fff.fish @ line 2
function fff
eval $D/Source/fff/fff $argv
end

View File

@ -1,5 +1,6 @@
# Defined in /tmp/fish.iUTHMQ/fish_user_key_bindings.fish @ line 2
# Defined in /tmp/fish.JFpPwv/fish_user_key_bindings.fish @ line 2
function fish_user_key_bindings
bind \co 'ranger-cd'
bind \eo 'cd (ffd | fzf)'
bind \co 'f'
bind \eo 'cd (ffd | fzf)'
bind \ed 'ncdu'
end