aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd/quitcd.zsh
blob: dc83b23cbe6c53cb6e6ad7fd346c0d9684bc8925 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
export NNN_TMPFILE="/tmp/nnn"

n()
{
        nnn "$@"

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