mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
parent
b44bdea230
commit
b1a1a3b0a7
|
@ -45,7 +45,7 @@ function prompt_pwd --description 'short CWD for the prompt'
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
|
|
||||||
string join / (string replace -ar '(\.?[^/]{'"$fish_prompt_pwd_dir_length"'})[^/]*/' '$1/' $tmp) $full
|
string join / -- (string replace -ar -- '(\.?[^/]{'"$fish_prompt_pwd_dir_length"'})[^/]*/' '$1/' $tmp) $full
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,3 +11,6 @@ prompt_pwd -D 2 /usr/share/fish/tools/web_config/sample_prompts
|
||||||
|
|
||||||
prompt_pwd -D 0 /usr/share/fish/tools/web_config/sample_prompts
|
prompt_pwd -D 0 /usr/share/fish/tools/web_config/sample_prompts
|
||||||
# CHECK: /u/s/f/t/w/s
|
# CHECK: /u/s/f/t/w/s
|
||||||
|
|
||||||
|
prompt_pwd -d1 -D 3 /usr/share/fish/tools/web_config/-sample_prompts
|
||||||
|
# CHECK: /u/s/f/tools/web_config/-sample_prompts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user