aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-10-31 23:27:07 +0800
committerGuangxiong Lin <[email protected]>2021-10-31 23:27:07 +0800
commitab24ded0a10b8843d94f806aaee3f13042cd9abe (patch)
tree5927a1a4c6cee6221d28804bab439f61f6a170f7
parentcb58ef3ad9a8a4476cdf09454d3e652687e8fd90 (diff)
downloaddotfiles-ab24ded0a10b8843d94f806aaee3f13042cd9abe.tar.gz
dotfiles-ab24ded0a10b8843d94f806aaee3f13042cd9abe.tar.bz2
dotfiles-ab24ded0a10b8843d94f806aaee3f13042cd9abe.zip
Add config of nnn
-rwxr-xr-x.nnnrc7
-rw-r--r--.zshrc2
-rwxr-xr-xbootstrap.sh2
3 files changed, 10 insertions, 1 deletions
diff --git a/.nnnrc b/.nnnrc
new file mode 100755
index 0000000..d1eea9b
--- /dev/null
+++ b/.nnnrc
@@ -0,0 +1,7 @@
+#!/usr/bin/env sh
+
+if [ ! -d $HOME/.config/nnn/plugins ]; then
+ curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs | sh
+fi
+
+export NNN_PLUG='f:fzcd;v:imgview;j:autojump'
diff --git a/.zshrc b/.zshrc
index 0c1738a..7a8f7a4 100644
--- a/.zshrc
+++ b/.zshrc
@@ -64,3 +64,5 @@ zplug load
source $HOME/.aliases
source $HOME/.functions
[ -f $HOME/.zsh_local ] && source $HOME/.zsh_local
+
+[ -f $HOME/.nnnrc ] && source $HOME/.nnnrc
diff --git a/bootstrap.sh b/bootstrap.sh
index e1e38b4..fdc8003 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -21,7 +21,7 @@ link_all () {
.mbsyncrc .msmtprc .tmux.conf .urlview .zshrc \
.vimrc .vim .path .functions .emacs.d .gitconfig \
.config/i3 .config/polybar .xinitrc .pam_environment \
- .zprofile .newsboat .ledgerrc
+ .zprofile .newsboat .ledgerrc .nnnrc
}
main () {