aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_pwd.fish
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-16 20:47:04 +0200
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-16 20:48:44 +0200
commit3e115b7a85184d16a5bb8d00fff702a62e3f8fea (patch)
tree433cc36061f92feb807b45fb16b27f54f39dda97 /share/functions/__fish_pwd.fish
parentca8e4c08a786f31f2ca2d353f54df3653fdd7a1a (diff)
Mac OS X doesn't support uname -o. Use uname instead.
I break compatibility with Mac OS X again, that I don't have access to. Result: Stuff break, and I have to fix it, so it will perhaps work. At least, I hope it will work.
Diffstat (limited to 'share/functions/__fish_pwd.fish')
-rw-r--r--share/functions/__fish_pwd.fish5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/functions/__fish_pwd.fish b/share/functions/__fish_pwd.fish
index d072c6fa..28272871 100644
--- a/share/functions/__fish_pwd.fish
+++ b/share/functions/__fish_pwd.fish
@@ -1,8 +1,9 @@
-if test (uname -o) = Cygwin
+switch (uname)
+case 'CYGWIN_*'
function __fish_pwd --description "Show current path"
pwd | sed -e 's-^/cygdrive/\(.\)/\?-\u\1:/-'
end
-else
+case '*'
function __fish_pwd --description "Show current path"
pwd
end