aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/quitcd/quitcd.csh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/quitcd/quitcd.csh')
-rw-r--r--scripts/quitcd/quitcd.csh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/quitcd/quitcd.csh b/scripts/quitcd/quitcd.csh
new file mode 100644
index 0000000..afa5fa6
--- /dev/null
+++ b/scripts/quitcd/quitcd.csh
@@ -0,0 +1,3 @@
+setenv NNN_TMPFILE /tmp/nnn
+
+alias n 'nnn -c 2; source "$NNN_TMPFILE"; rm "$NNN_TMPFILE"'