From 5c31078043810ce883254de72f738a06e12e4554 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 14 Dec 2020 06:55:51 +0300 Subject: add nnn configuration --- %HOME%/.profile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '%HOME%/.profile') 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' -- cgit v1.2.3