aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/quitcd/quitcd.fish
blob: 079f33e2029d31fad8fa610bc0e36ecacb6f0cf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
export NNN_TMPFILE="/tmp/nnn"

function n --description 'support nnn quit and change directory'
        nnn $argv

        if test -e $NNN_TMPFILE
                . $NNN_TMPFILE
                rm $NNN_TMPFILE
        end
end