Tag Info

New answers tagged

0

Zsh on its own starts up in around 0.1 second for me, which is plenty good enough. I just noticed as I got near the 50,000 command history mark that it became more like 3 seconds to load up the first prompt. I dunno how you guys are finding all these other reasons for slow startup, but mine was exactly what my first guess was. I did a mv ~/.zsh_history ...


1

In order to extend your current PS1 prompt by a preceding horizontal line, you only need to do this: setopt promptsubst PS1=$'%U${(r:$COLUMNS:: :)}%u'$PS1 Explanation: Everything between %U and %u is underlined. The option promptsubst enables the substitution of parameters inside the prompt each time the prompt is drawn, in this case COLUMNS. The ...


0

I think the line is coded into the prompt and realized via the underline prompt escape %U: PS1="%U %u %~ " where %~ is your usual prompt (check with print $PS1): More tricky is to make the line as wide as your terminal. The number of characters is stored in $COLUMNS, so we construct a string of an appropriate number of blanks, ...



Top 50 recent answers are included