I have this loop at config.fish
:
set W_COLS (tput cols)
for x in (seq $W_COLS)
echo $x
end
This works great, iterating trought my terminal's width. I get and output of:
1
2
3
.
.
.
80
I'd like to print the number side by side, without a new line.
I tried doing echo -n $x
but this caused the loop to not work anymore, and I just get a barebones shell:
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
>
Why is the loop failing?