mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-19 09:51:16 -03:00
They are used by "fish_config" CLI too, so no need to make them private to webconfig. Putting them at top-level seems simpler overall.
17 lines
334 B
Fish
17 lines
334 B
Fish
#RUN: %fish %s
|
|
|
|
prompt_pwd -d 1 /foo/bar/baz
|
|
# CHECK: /f/b/baz
|
|
|
|
prompt_pwd /usr/share/fish/prompts
|
|
# CHECK: /u/s/f/prompts
|
|
|
|
prompt_pwd -D 2 /usr/share/fish/prompts
|
|
# CHECK: /u/s/fish/prompts
|
|
|
|
prompt_pwd -D 0 /usr/share/fish/prompts
|
|
# CHECK: /u/s/f/p
|
|
|
|
prompt_pwd -d1 -D 3 /usr/local/share/fish/prompts
|
|
# CHECK: /u/l/share/fish/prompts
|