aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.profile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-12-14 06:55:51 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-12-14 07:52:35 +0300
commit5c31078043810ce883254de72f738a06e12e4554 (patch)
tree2a3068c6301833f19ccdd3f62e30c2a4f1bf577f /%HOME%/.profile
parentranger: fuzzy-search hidden files also (diff)
downloadlinux-home-5c31078043810ce883254de72f738a06e12e4554.tar.gz
linux-home-5c31078043810ce883254de72f738a06e12e4554.zip
add nnn configuration
Diffstat (limited to '%HOME%/.profile')
-rw-r--r--%HOME%/.profile15
1 files changed, 15 insertions, 0 deletions
diff --git a/%HOME%/.profile b/%HOME%/.profile
index ccb1f92..acef9ed 100644
--- a/%HOME%/.profile
+++ b/%HOME%/.profile
@@ -103,3 +103,18 @@ command -v systemctl > /dev/null 2>&1 || spawn_ssh_agent
# Rust-specific stuff:
path_export "$HOME/.cargo/bin"
+
+# fzf
+
+# Search directories and hidden files by default.
+export FZF_DEFAULT_COMMAND='find -L . -\( -fstype dev -o -fstype proc -\) -prune -o -print 2> /dev/null'
+
+command -v fd > /dev/null 2>&1 \
+ && export FZF_DEFAULT_COMMAND='fd --follow --show-errors --hidden 2> /dev/null'
+
+# nnn
+# -e Open text files in $EDITOR.
+# -H Show hidden files.
+# -o Only open on Enter, not on l.
+export NNN_OPTS=eHo
+export NNN_PLUG='f:myfzcd'