tests: Use math for the prompt counter

This commit is contained in:
Fabian Homborg 2020-11-09 19:42:46 +01:00
parent 9b0bec59ae
commit a52bf1d078

View file

@ -4,7 +4,7 @@ set -g prompt_counter 0
set -g prompt_counter_incr 0
function fish_prompt
if test $prompt_counter_incr -eq 1
set -g prompt_counter (expr $prompt_counter + 1)
set -g prompt_counter (math $prompt_counter + 1)
set -g prompt_counter_incr 0
end
echo "prompt $prompt_counter>"