Yes! I use it all the time. No idea why it's not more popular
sebastiancarlos
joined 1 year ago
.bashrc:
# Prompt
# "Make it simple, just the dollar sign"
# "Say no more, fam"
# - if error code is not 0, then prepend [N] where N is the error code
# - if user is root, use red and #
blue='\e[34m'
red='\e[31m'
bold='\e[1m'
reset='\e[0m'
PS1='$( status=$?; [ $status -ne 0 ] && echo "[$status] ")\['"$blue""$bold"'\]$\['"$reset"'\] '
if [[ $EUID -eq 0 ]]; then
PS1='$( status=$?; [ $status -ne 0 ] && echo "[$status] ")\['"$red""$bold"'\]#\['"$reset"'\] '
fi
.inputrc:
# vi mode, change to 'emacs' here if you prefer
set editing-mode vi
# vi INSERT prompt
set vi-ins-mode-string "\1\e[30;44m\2 INS \1\e[0m\2 "
# vi NORMAL prompt
set vi-cmd-mode-string "\1\e[30;47m\2 NOR \1\e[0m\2 "
answered in post. btw it seems this is a Sway only issue, so it makes sense it's ok in i3
answered in post
answered in post
Both are incomplete, but the article is no longer paywalled
Looks like you sshd into my working titles
It's also traditional to eat raw meat, but we discovered fire at some point.
You also don’t need the dash for the short options.
True, but I refuse to entertain such a non-standard option format. It's already enough to tolerate find
's.
Cool, thanks! Look like there are things like xrandr for Wayland with this functionality. the burn-in is not so bad right now but I'll keep this in mind.