aboutsummaryrefslogtreecommitdiff
path: root/.nnnrc
blob: 75885d483f5a228ea9b5e1cf5e4b27b878d387a2 (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

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

TERMINAL=xterm
if [[ $TERM =~ 'st' ]]; then
    TERMINAL=st
fi

alias n="TERMINAL=$TERMINAL nnn"