Stringify __fish_pwd.fish

This commit is contained in:
Jason Nader 2020-01-22 18:33:24 +09:00 committed by Fabian Homborg
parent 2a247c7fe5
commit 5bfb6fef76

View File

@ -1,7 +1,12 @@
switch (uname)
case 'CYGWIN_*'
function __fish_pwd --description "Show current path"
pwd | sed -e 's-^/cygdrive/\(.\)/\?-\u\1:/-'
if status test-feature regex-easyesc
pwd | string replace -r '^/cygdrive/(.)?' '\U$1:'
else
# TODO: Remove this once regex-easyesc becomes the default
pwd | string replace -r '^/cygdrive/(.)?' '\\\U$1:'
end
end
case '*'
function __fish_pwd --description "Show current path"