mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix quitcd snippets for 'zsh' and 'bash'
This commit is contained in:
parent
bf28a096ba
commit
34ecf3ce13
|
@ -1,9 +1,9 @@
|
||||||
n()
|
n()
|
||||||
{
|
{
|
||||||
nnn "$@"
|
|
||||||
|
|
||||||
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
|
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
|
||||||
|
|
||||||
|
nnn "$@"
|
||||||
|
|
||||||
if [ -f $NNN_TMPFILE ]; then
|
if [ -f $NNN_TMPFILE ]; then
|
||||||
. $NNN_TMPFILE
|
. $NNN_TMPFILE
|
||||||
rm -f $NNN_TMPFILE > /dev/null
|
rm -f $NNN_TMPFILE > /dev/null
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
n()
|
n()
|
||||||
{
|
{
|
||||||
nnn "$@"
|
|
||||||
|
|
||||||
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
|
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
|
||||||
|
|
||||||
|
nnn "$@"
|
||||||
|
|
||||||
if [ -f $NNN_TMPFILE ]; then
|
if [ -f $NNN_TMPFILE ]; then
|
||||||
. $NNN_TMPFILE
|
. $NNN_TMPFILE
|
||||||
rm $NNN_TMPFILE
|
rm $NNN_TMPFILE
|
||||||
|
|
Loading…
Reference in a new issue