This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix quitcd snippets for 'zsh' and 'bash'
master
Pavel Fokin
5 years ago
parent
bf28a096ba
commit
34ecf3ce13
2 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
misc/quitcd/quitcd.bash
+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
Write
Preview
Loading…
Cancel
Save