mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 22:58:46 +00:00
tests/invocation: Set colors after $TERM
builds.sr.ht doesn't set $TERM, so this failed.
This commit is contained in:
parent
7aca69780c
commit
1074a59d75
1 changed files with 11 additions and 10 deletions
|
@ -80,16 +80,6 @@ fish_dir="$(dirname "${fish_exe}")"
|
||||||
fish_leaf="$(basename "${fish_exe}")"
|
fish_leaf="$(basename "${fish_exe}")"
|
||||||
|
|
||||||
|
|
||||||
# Terminal colouring
|
|
||||||
term_red="$(tput setaf 1)"
|
|
||||||
term_green="$(tput setaf 2)"
|
|
||||||
term_yellow="$(tput setaf 3)"
|
|
||||||
term_blue="$(tput setaf 4)"
|
|
||||||
term_magenta="$(tput setaf 5)"
|
|
||||||
term_cyan="$(tput setaf 6)"
|
|
||||||
term_white="$(tput setaf 7)"
|
|
||||||
term_reset="$(tput sgr0)"
|
|
||||||
|
|
||||||
# Which system are we on.
|
# Which system are we on.
|
||||||
# fish has slightly different behaviour depending on the system it is
|
# fish has slightly different behaviour depending on the system it is
|
||||||
# running on (and the libraries that it is linked with), so for special
|
# running on (and the libraries that it is linked with), so for special
|
||||||
|
@ -300,6 +290,17 @@ fi
|
||||||
|
|
||||||
clean_environment
|
clean_environment
|
||||||
|
|
||||||
|
# Terminal colouring
|
||||||
|
# Only do this after setting up $TERM.
|
||||||
|
term_red="$(tput setaf 1)"
|
||||||
|
term_green="$(tput setaf 2)"
|
||||||
|
term_yellow="$(tput setaf 3)"
|
||||||
|
term_blue="$(tput setaf 4)"
|
||||||
|
term_magenta="$(tput setaf 5)"
|
||||||
|
term_cyan="$(tput setaf 6)"
|
||||||
|
term_white="$(tput setaf 7)"
|
||||||
|
term_reset="$(tput sgr0)"
|
||||||
|
|
||||||
say cyan "Testing shell invocation functionality"
|
say cyan "Testing shell invocation functionality"
|
||||||
|
|
||||||
passed=0
|
passed=0
|
||||||
|
|
Loading…
Reference in a new issue