From 464c9857cc660bd173f4197f66172ac8f54284a6 Mon Sep 17 00:00:00 2001 From: "Alexander Gehrke (crater2150)" Date: Sat, 30 Sep 2017 22:05:52 +0200 Subject: [PATCH] fixes --- aliases/portage | 2 +- modules/prompt/init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aliases/portage b/aliases/portage index 0b064b8..c5cf2ea 100644 --- a/aliases/portage +++ b/aliases/portage @@ -5,7 +5,7 @@ grep -q "gentoo" /etc/os-release || return lesswrap eix -F alias eud="emerge -vabuDUN -j4 --keep-going world" alias fetchlog="tail -f /var/log/emerge-fetch.log" -alias emerge="noglob sudo emerge" +alias emerge="noglob sudo -i emerge" fetchrestricted() { for file in "$@"; do diff --git a/modules/prompt/init b/modules/prompt/init index 5bc78ac..374f6fb 100644 --- a/modules/prompt/init +++ b/modules/prompt/init @@ -105,6 +105,7 @@ function setprompt() { 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 += 1)) # workaround off by one, unknown reason if [[ "$PROMPT_UNICODE" = "yes" ]]; then filler="${rpscolor}${(l:$(( $COLUMNS - $i_width + 2))::─:)}"