fish-shell/share/functions/__fish_pwd.fish

16 lines
507 B
Fish
Raw Normal View History

switch (uname)
case 'CYGWIN_*'
function __fish_pwd --description "Show current path"
2020-01-22 09:33:24 +00:00
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"
pwd
end
2020-01-22 09:33:24 +00:00
end