summaryrefslogtreecommitdiff
path: root/old/config/fish/functions/__parse_current_folder.fish
diff options
context:
space:
mode:
authorKjetil Ørbekk <kj@orbekk.com>2020-10-18 13:59:23 +0000
committerKJ Oerbekk <orbekk@google.com>2020-10-18 14:00:30 +0000
commit7952033da2d8a90cb0f9a30150cf6a45c6492b8d (patch)
tree1e223e4cdbaa440c27ba535ff9e75d3abe2d571b /old/config/fish/functions/__parse_current_folder.fish
parent5441276b4545772d62fe21aef542f57ab646125b (diff)
Remove unused dotfiles
Diffstat (limited to 'old/config/fish/functions/__parse_current_folder.fish')
-rw-r--r--old/config/fish/functions/__parse_current_folder.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/old/config/fish/functions/__parse_current_folder.fish b/old/config/fish/functions/__parse_current_folder.fish
new file mode 100644
index 0000000..031b53e
--- /dev/null
+++ b/old/config/fish/functions/__parse_current_folder.fish
@@ -0,0 +1,3 @@
+function __parse_current_folder -d "Replace '$HOME' with '~'"
+ pwd | sed "s|$HOME|~|"
+end