aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-17 21:45:27 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-17 21:45:27 +0530
commit56ca0a6cce1e0521e81bedeb9876c7bc9667bd22 (patch)
treef1a550e7d0aec88c7a80f779b8cd20d222540b23
parent80371258a12e05568f9eb428fb7076f6663f9c48 (diff)
downloadnnn-56ca0a6cce1e0521e81bedeb9876c7bc9667bd22.tar.gz
Rudimentary C Shell script to quit and cd
-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"'