Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
COLUMNS incorrect for the first prompt in a session #4141
fish, version 2.6.0
With a fish_prompt of
function fish_prompt echo "$COLUMNS > " end
I see some weird behaviour. Specifically, the first prompt of any fish invocation prints 80, while subsequent prompts print 120 (actual width).
This happens for new tabs, new windows, and even nested fish shell invocations.
Pressing return, resizing the window (in either dimension), pasting something (presumably because of the syntax highlighting), or even pkill -SIGWINCH fish in another session, all fix the prompt.
I have a "-d 3" log of fish, where all I do is press return to update columns and then quit.