From c9ccb1ef52543456215568baaae84eef6be467a2 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 28 Oct 2022 02:13:12 +0000 Subject: [PATCH] Update dotfiles/.inputrc, dotfiles/.bashrc --- dotfiles/.bashrc | 6 +++--- dotfiles/.inputrc | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 4b690c53..3abd43b6 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -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" diff --git a/dotfiles/.inputrc b/dotfiles/.inputrc index 46856009..2a5cf631 100644 --- a/dotfiles/.inputrc +++ b/dotfiles/.inputrc @@ -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