aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/pwd.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/pwd.fish')
-rw-r--r--share/functions/pwd.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/functions/pwd.fish b/share/functions/pwd.fish
new file mode 100644
index 00000000..678fecb4
--- /dev/null
+++ b/share/functions/pwd.fish
@@ -0,0 +1,7 @@
+#
+# Make pwd print out the home directory as a tilde.
+#
+
+function pwd -d (_ "Print working directory")
+ command pwd | sed -e 's|/private||' -e "s|^$HOME|~|"
+end