dotfiles

Yes, my $HOME has a git repo now :(

git clone git://git.shimmy1996.com/dotfiles.git
commit 225144928cb4a4ea8dab0f8442c0bb3f22289636
parent 387e0dde9ff95896c7357c72bee8206f9a3347ff
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 22 Jan 2019 20:03:36 -0500

Use fzf for search in lf.

Diffstat:
M.config/lf/lfrc | 4++--
M.profile | 29+++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
@@ -37,8 +37,8 @@ map <a-w> copy
 map <c-y> paste
 
 # Emacs style search
-map <c-s> search
-map <c-r> search-back
+cmd fuzzy $lf -remote "send $id select $(fzf)"
+map <c-s> fuzzy
 
 # define a custom 'open' command
 # This command is called when current file is not a directory. You may want to
diff --git a/.profile b/.profile
@@ -19,5 +19,34 @@ export BROWSER="firefox"
 export EDITOR="emacsclient"
 export VISUAL="emacsclient"
 
+# fzf color scheme.
+_gen_fzf_default_opts() {
+    local color00='#262626'
+    local color01='#3a3a3a'
+    local color02='#4e4e4e'
+    local color03='#8a8a8a'
+    local color04='#949494'
+    local color05='#dab997'
+    local color06='#d5c4a1'
+    local color07='#ebdbb2'
+    local color08='#d75f5f'
+    local color09='#ff8700'
+    local color0A='#ffaf00'
+    local color0B='#afaf00'
+    local color0C='#85ad85'
+    local color0D='#83adad'
+    local color0E='#d485ad'
+    local color0F='#d65d0e'
+
+    export FZF_DEFAULT_OPTS="
+  --color=bg+:$color01,bg:$color00,spinner:$color0C,hl:$color0D
+  --color=fg:$color04,header:$color0D,info:$color0A,pointer:$color0C
+  --color=marker:$color0C,fg+:$color06,prompt:$color0A,hl+:$color0D
+--height=40%
+"
+}
+
+_gen_fzf_default_opts
+
 # Auto start tbsm after login on first two VTs.
 [[ $XDG_VTNR -le 2 ]] && tbsm