Update dotfiles/.bashrc

This commit is contained in:
Brian Zalewski 2022-10-28 21:43:32 +00:00
parent 623d9f5505
commit 061f72c187

View file

@ -3,10 +3,12 @@
# Prefer US English # Prefer US English
export LANG="en_US" export LANG="en_US"
export LC_ALL="en_US.UTF-8"
### Fig ### Fig / LC_ALL
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
if [[ "$(hostname)" != *'-minimal' ]]; then
export LC_ALL="en_US.UTF-8"
fi
if [ -f "$HOME/.fig/shell/bashrc.pre.bash" ]; then if [ -f "$HOME/.fig/shell/bashrc.pre.bash" ]; then
. "$HOME/.fig/shell/bashrc.pre.bash" . "$HOME/.fig/shell/bashrc.pre.bash"
fi fi
@ -17,7 +19,7 @@ if [ -f "$HOME/.profile" ]; then
. "$HOME/.profile" . "$HOME/.profile"
fi fi
COLOR_SCHEME=dark # dark/light COLOR_SCHEME=dark
alias ..='cd ..' alias ..='cd ..'
alias cp='cp -v' alias cp='cp -v'
@ -240,7 +242,7 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
### MOTD ### MOTD
if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [ "$SHLVL" -eq 1 ] && [[ $- == *i* ]]; } || type qubes-vmexec &>/dev/null || type qubes-dom0-update &>/dev/null; then if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [ "$SHLVL" -eq 1 ] && [[ $- == *i* ]]; } || type qubes-vmexec &>/dev/null || type qubes-dom0-update &>/dev/null; then
if [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; then if { [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; } && [[ "$(hostname)" != *'-minimal' ]]; then
. "$HOME/.local/motd.sh" . "$HOME/.local/motd.sh"
# TODO - -- services # TODO - -- services