Browse Source

Fix quitcd snippets for 'zsh' and 'bash'

master
Pavel Fokin 5 years ago
parent
commit
34ecf3ce13
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      misc/quitcd/quitcd.bash
  2. +2
    -2
      misc/quitcd/quitcd.zsh

+ 2
- 2
misc/quitcd/quitcd.bash View File

@@ -1,9 +1,9 @@
n()
{
nnn "$@"

NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd

nnn "$@"

if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm -f $NNN_TMPFILE > /dev/null


+ 2
- 2
misc/quitcd/quitcd.zsh View File

@@ -1,9 +1,9 @@
n()
{
nnn "$@"

NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd

nnn "$@"

if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE


Loading…
Cancel
Save