From 56ca0a6cce1e0521e81bedeb9876c7bc9667bd22 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 17 Nov 2018 21:45:27 +0530 Subject: [PATCH] Rudimentary C Shell script to quit and cd --- scripts/quitcd/quitcd.csh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 scripts/quitcd/quitcd.csh diff --git a/scripts/quitcd/quitcd.csh b/scripts/quitcd/quitcd.csh new file mode 100644 index 00000000..afa5fa69 --- /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"'