aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_pwd.fish
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-14 12:21:17 +0300
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-14 12:21:17 +0300
commitd407d680eaea4afb9eef384a003b10c5f6aafcd7 (patch)
tree8a8eef6a856183dca6e686ed84d1259d45340684 /share/functions/__fish_pwd.fish
parentfeb36e7342cf782e7723fe41eb2c414ec2879800 (diff)
Show path containing current disk drive in Windows in title
Diffstat (limited to 'share/functions/__fish_pwd.fish')
-rw-r--r--share/functions/__fish_pwd.fish9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/functions/__fish_pwd.fish b/share/functions/__fish_pwd.fish
new file mode 100644
index 00000000..d072c6fa
--- /dev/null
+++ b/share/functions/__fish_pwd.fish
@@ -0,0 +1,9 @@
+if test (uname -o) = Cygwin
+ function __fish_pwd --description "Show current path"
+ pwd | sed -e 's-^/cygdrive/\(.\)/\?-\u\1:/-'
+ end
+else
+ function __fish_pwd --description "Show current path"
+ pwd
+ end
+end \ No newline at end of file