From e02135b4ddfac1fd903ac16319174c1310d4642f Mon Sep 17 00:00:00 2001 From: David Chen Date: Sat, 14 Sep 2019 16:02:04 -0700 Subject: [PATCH] fzf, onedrive --- fish/fish_variables | 1 + fish/functions/fish_user_key_bindings.fish | 3 +++ fish/functions/fzf.fish | 4 ++-- fish/functions/fzf_key_bindings.fish | 1 + omf/bundle | 1 + ranger/rc.conf | 2 +- 6 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 fish/functions/fish_user_key_bindings.fish create mode 120000 fish/functions/fzf_key_bindings.fish diff --git a/fish/fish_variables b/fish/fish_variables index fe96e09..65caa32 100755 --- a/fish/fish_variables +++ b/fish/fish_variables @@ -29,3 +29,4 @@ SETUVAR fish_pager_color_completion:normal SETUVAR fish_pager_color_description:B3A06D\x1eyellow SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_user_paths:/home/david/\x2efzf/bin diff --git a/fish/functions/fish_user_key_bindings.fish b/fish/functions/fish_user_key_bindings.fish new file mode 100644 index 0000000..350a9da --- /dev/null +++ b/fish/functions/fish_user_key_bindings.fish @@ -0,0 +1,3 @@ +function fish_user_key_bindings + fzf_key_bindings +end diff --git a/fish/functions/fzf.fish b/fish/functions/fzf.fish index b025cfb..23fcc32 100644 --- a/fish/functions/fzf.fish +++ b/fish/functions/fzf.fish @@ -1,4 +1,4 @@ # Defined in - @ line 1 -function fzf --description alias\ fzf\ fzf\ --preview\ \'head\ -100\ \{\}\' - command fzf --preview 'head -100 {}' $argv; +function fzf --description alias\ fzf\ fzf\ --preview\ \'head\ -100\ \{\}\'\n + command fzf --preview 'head -100 {}' $argv; end diff --git a/fish/functions/fzf_key_bindings.fish b/fish/functions/fzf_key_bindings.fish new file mode 120000 index 0000000..c5b233f --- /dev/null +++ b/fish/functions/fzf_key_bindings.fish @@ -0,0 +1 @@ +/home/david/.fzf/shell/key-bindings.fish \ No newline at end of file diff --git a/omf/bundle b/omf/bundle index 54c0745..c99b8f9 100644 --- a/omf/bundle +++ b/omf/bundle @@ -1 +1,2 @@ +package wttr theme default diff --git a/ranger/rc.conf b/ranger/rc.conf index a69c128..07eb0a2 100755 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -336,7 +336,7 @@ map gus cd /usr/share map guf cd /usr/share/fonts map gud cd /usr/share/doc map gd cd /dev -map go cd /opt +map go cd ~/OneDrive map gv cd /var map gm cd /run/media map gM cd /mnt