mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
16 lines
507 B
Fish
16 lines
507 B
Fish
switch (uname)
|
|
case 'CYGWIN_*'
|
|
function __fish_pwd --description "Show current path"
|
|
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
|
|
end
|