diff --git a/.bashrc b/.bashrc index 0b02814..e3b6569 100644 --- a/.bashrc +++ b/.bashrc @@ -20,6 +20,7 @@ alias sshd='boas /usr/sbin/sshd' alias ga='git add' alias gc='git commit -sS' alias gp='git push' +alias wv='mpv $(wl-paste)' # Completions for elevation program (https://codeberg.org/Bowuigi/Unit21 in management/boas) complete -cf boas diff --git a/.prompt b/.prompt index e65ee2e..9011d07 100644 --- a/.prompt +++ b/.prompt @@ -115,6 +115,7 @@ __prompt() { CMD_US="$((1$PROMPT_US-$LAST_US))" || CMD_US="$(($PROMPT_US_CLN-$LAST_US))" CMD_US="$((10#0$CMD_US))" + [[ ${#CMD_US} -lt 6 ]] || CMD_US="${CMD_US: -6}" # Set prompt sections