aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/quitcd/quitcd.fish
blob: e7eec5e14962a4757312d8d2edad1f46e771ee8d (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
                source $NNN_TMPFILE
                rm $NNN_TMPFILE
        end
end