mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 08:56:43 +08:00
tests/git: Start an interactive fish
This makes the fish_git_prompt variable handlers kick in, meaning we see the informative chars. The big question here is what happens if there's a non-UTF-8 locale in the test. Theoretically we set LC_CTYPE, but.....
This commit is contained in:
parent
c5379aaf2d
commit
e0455d13e7
|
@ -1,4 +1,6 @@
|
|||
#RUN: %fish %s
|
||||
#RUN: %fish -i %s
|
||||
# Note: ^ this is interactive so we test interactive behavior,
|
||||
# e.g. the fish_git_prompt variable handlers test `status is-interactive`.
|
||||
#REQUIRES: command -v git
|
||||
|
||||
# Do some tests with `git` - completions are interesting,
|
||||
|
@ -31,4 +33,9 @@ echo # the git prompt doesn't print a newline
|
|||
|
||||
__fish_git_prompt_show_informative_status=1 fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch %1)
|
||||
#CHECK: (newbranch|…1)
|
||||
|
||||
# Confirm the mode changes back
|
||||
fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch)
|
||||
|
|
Loading…
Reference in New Issue
Block a user