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

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

Replace single dot with source for fish shell
Replace single dot with source for fish shell

Single dot has been deprecated and can cause issues with users on newer version: https://github.com/fish-shell/fish-shell/issues/310
jarun/nnn,jarun/nnn,jarun/nnn,jarun/nnn,jarun/noice,jarun/noice