summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2020-08-30 12:02:58 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2020-08-30 13:14:13 +0200
commite5713901583e2b460361d867de0d4368f39f038a (patch)
tree29dd9b3ad83fb00119a2c165b72e8d8396474f7d /rc
parent625375fd2718cb1e2c977c7d61cba03985fbc450 (diff)
Add :pwd and :bwd commands
Diffstat (limited to 'rc')
-rwxr-xr-xrc/connect/commands/:bwd4
-rwxr-xr-xrc/connect/commands/:pwd3
2 files changed, 7 insertions, 0 deletions
diff --git a/rc/connect/commands/:bwd b/rc/connect/commands/:bwd
new file mode 100755
index 0000000..310edc4
--- /dev/null
+++ b/rc/connect/commands/:bwd
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Buffer working directory
+dirname `:it`
diff --git a/rc/connect/commands/:pwd b/rc/connect/commands/:pwd
new file mode 100755
index 0000000..2e313b9
--- /dev/null
+++ b/rc/connect/commands/:pwd
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+:get %sh{pwd}