fixes
This commit is contained in:
parent
4ceed76221
commit
464c9857cc
|
@ -5,7 +5,7 @@ grep -q "gentoo" /etc/os-release || return
|
||||||
lesswrap eix -F
|
lesswrap eix -F
|
||||||
alias eud="emerge -vabuDUN -j4 --keep-going world"
|
alias eud="emerge -vabuDUN -j4 --keep-going world"
|
||||||
alias fetchlog="tail -f /var/log/emerge-fetch.log"
|
alias fetchlog="tail -f /var/log/emerge-fetch.log"
|
||||||
alias emerge="noglob sudo emerge"
|
alias emerge="noglob sudo -i emerge"
|
||||||
|
|
||||||
fetchrestricted() {
|
fetchrestricted() {
|
||||||
for file in "$@"; do
|
for file in "$@"; do
|
||||||
|
|
|
@ -105,6 +105,7 @@ function setprompt() {
|
||||||
i_width=${(S)infoline//\%\{*\%\}} # search-and-replace color escapes
|
i_width=${(S)infoline//\%\{*\%\}} # search-and-replace color escapes
|
||||||
i_width=${(%)i_width} # expand all escapes and count the chars
|
i_width=${(%)i_width} # expand all escapes and count the chars
|
||||||
i_width=${#i_width} # expand all escapes and count the chars
|
i_width=${#i_width} # expand all escapes and count the chars
|
||||||
|
((i_width += 1)) # workaround off by one, unknown reason
|
||||||
|
|
||||||
if [[ "$PROMPT_UNICODE" = "yes" ]]; then
|
if [[ "$PROMPT_UNICODE" = "yes" ]]; then
|
||||||
filler="${rpscolor}${(l:$(( $COLUMNS - $i_width + 2))::─:)}"
|
filler="${rpscolor}${(l:$(( $COLUMNS - $i_width + 2))::─:)}"
|
||||||
|
|
Loading…
Reference in a new issue