mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Allow passing directories to prompt_pwd
This allows us to test it without cd-ing about the place.
This commit is contained in:
13
tests/checks/prompt.fish
Normal file
13
tests/checks/prompt.fish
Normal file
@@ -0,0 +1,13 @@
|
||||
#RUN: %fish %s
|
||||
|
||||
prompt_pwd -d 1 /foo/bar/baz
|
||||
# CHECK: /f/b/baz
|
||||
|
||||
prompt_pwd /usr/share/fish/tools/web_config/sample_prompts
|
||||
# CHECK: /u/s/f/t/w/sample_prompts
|
||||
|
||||
prompt_pwd -D 2 /usr/share/fish/tools/web_config/sample_prompts
|
||||
# CHECK: /u/s/f/t/web_config/sample_prompts
|
||||
|
||||
prompt_pwd -D 0 /usr/share/fish/tools/web_config/sample_prompts
|
||||
# CHECK: /u/s/f/t/w/sample_prompts
|
||||
Reference in New Issue
Block a user