aboutsummaryrefslogtreecommitdiff
path: root/.nnnrc
blob: 3250cf58823d9aff3533171d3e2ff7d53f5f4009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env sh

if [ ! -d $HOME/.config/nnn/plugins ]; then
    curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs | sh
fi

# To support cd on quit (Ctrl-G)
# NOTE: It will add a function `n` and ONLY work when typing `n` instead
# of `nnn`.
if [ -f /usr/share/nnn/quitcd/quitcd.bash_zsh ]; then
        source /usr/share/nnn/quitcd/quitcd.bash_zsh
fi

export NNN_PLUG='f:fzcd;v:imgview;j:autojump;p:preview-tui'
[ -f /usr/bin/trash ] && export NNN_TRASH=1
export NNN_FIFO=/tmp/nnn.fifo