aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd/quitcd.bash
blob: 71abf1fd5f910f733755fc7f219a3e690f5b31cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export NNN_TMPFILE="/tmp/nnn"

n()
{
        if [ -n "$1" ]; then
                nnn -d "$1"
        else
                nnn -d
        fi

        if [ -f $NNN_TMPFILE ]; then
                . $NNN_TMPFILE
                rm $NNN_TMPFILE
        fi
}