"Fossies" - the Fresh Open Source Software Archive

Member "nnn-4.4/misc/quitcd/quitcd.csh" (23 Nov 2021, 504 Bytes) of package /linux/misc/nnn-v4.4.tar.gz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "quitcd.csh": v4.3_vs_v4.4.

    1 # NOTE: set NNN_TMPFILE correctly if you use 'XDG_CONFIG_HOME'
    3 # The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
    4 # To cd on quit only on ^G, set NNN_TMPFILE after nnn invocation
    5 # A custom path can also be set e.g. set NNN_TMPFILE=/tmp/.lastd
    6 set NNN_TMPFILE=~/.config/nnn/.lastd
    8 # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
    9 # stty start undef
   10 # stty stop undef
   11 # stty lwrap undef
   12 # stty lnext undef
   14 alias n 'nnn; source "$NNN_TMPFILE"; rm -f "$NNN_TMPFILE"'