summaryrefslogtreecommitdiff
path: root/config/fish/functions/__parse_current_folder.fish
diff options
context:
space:
mode:
Diffstat (limited to 'config/fish/functions/__parse_current_folder.fish')
-rw-r--r--config/fish/functions/__parse_current_folder.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/fish/functions/__parse_current_folder.fish b/config/fish/functions/__parse_current_folder.fish
new file mode 100644
index 0000000..031b53e
--- /dev/null
+++ b/config/fish/functions/__parse_current_folder.fish
@@ -0,0 +1,3 @@
+function __parse_current_folder -d "Replace '$HOME' with '~'"
+ pwd | sed "s|$HOME|~|"
+end