common-shells: improved handling of 256 color `TERM` in `.alias` and redirecting `stdout` and `stderr` to `/dev/null` when enabling numlock for TTY in `.profile`

master
Meliurwen 1 year ago
parent e43527226a
commit c0217a5ae6
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 4
      common-shells/.aliases
  2. 2
      common-shells/.profile

@ -6,7 +6,7 @@ alias upgrade='sudo apt-get update && \
sudo apt-get clean' # System clean upgrade sudo apt-get clean' # System clean upgrade
alias diff='diff --color' alias diff='diff --color'
alias ls='ls --color=tty' alias ls='ls --color=tty'
alias mutt='TERM=${TERM}-256color mutt' alias mutt='TERM=${TERM%-256color}-256color mutt'
alias neomutt='TERM=${TERM}-256color neomutt' alias neomutt='TERM=${TERM%-256color}-256color neomutt'
alias mpv-pip='mpv --profile="pip"' alias mpv-pip='mpv --profile="pip"'

@ -18,7 +18,7 @@ if [ "$TERM" = "linux" ]; then
setfont "$CONSOLE_FONTD/$CONSOLE_FONT" setfont "$CONSOLE_FONTD/$CONSOLE_FONT"
fi fi
# Enable numlock for TTY # Enable numlock for TTY
if command -v setleds; then if command -v setleds > /dev/null 2>&1; then
setleds -D +num setleds -D +num
fi fi
fi fi

Loading…
Cancel
Save