Update dotfiles/.inputrc, dotfiles/.bashrc

This commit is contained in:
Brian Zalewski 2022-10-28 02:13:12 +00:00
parent 87cff3ff88
commit c9ccb1ef52
2 changed files with 8 additions and 3 deletions

View file

@ -80,7 +80,7 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
fi
# Prompt (on bash only)
if [ "false" = "true" ] && ([ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]); then
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
# Add new line before prompt
PROMPT_COMMAND="PROMPT_COMMAND=echo"
if [ -f /etc/os-release ]; then
@ -153,7 +153,7 @@ if [ "false" = "true" ] && ([ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]); then
fi
# Prefer US English
export LC_ALL="en_US.UTF-8"
# export LC_ALL="en_US.UTF-8"
fi
### Miscellaneous
@ -265,7 +265,7 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
command -v zoxide > /dev/null && eval "$(zoxide init bash)"
### MOTD
if ([ -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
. "$HOME/.local/motd.sh"

View file

@ -37,5 +37,10 @@ set visible-stats on
# Readline used by Bash 4.)
set skip-completed-text on
# Allow UTF-8 input and output, instead of showing stuff like $'\0123\0456'
set input-meta on
set output-meta on
set convert-meta off
# Use Alt/Meta + Delete to delete the preceding word
"\e[3;3~": kill-word