This commit is contained in:
Alexander Gehrke (crater2150) 2017-09-30 22:05:52 +02:00
parent 4ceed76221
commit 464c9857cc
2 changed files with 2 additions and 1 deletions
aliases
modules/prompt

View file

@ -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

View file

@ -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))::─:)}"