mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
tests: Use math for the prompt counter
This commit is contained in:
parent
9b0bec59ae
commit
a52bf1d078
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ set -g prompt_counter 0
|
||||||
set -g prompt_counter_incr 0
|
set -g prompt_counter_incr 0
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
if test $prompt_counter_incr -eq 1
|
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
|
set -g prompt_counter_incr 0
|
||||||
end
|
end
|
||||||
echo "prompt $prompt_counter>"
|
echo "prompt $prompt_counter>"
|
||||||
|
|
Loading…
Reference in a new issue