Update dotfiles/.inputrc, dotfiles/.bashrc
This commit is contained in:
parent
87cff3ff88
commit
c9ccb1ef52
2 changed files with 8 additions and 3 deletions
|
@ -80,7 +80,7 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prompt (on bash only)
|
# 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
|
# Add new line before prompt
|
||||||
PROMPT_COMMAND="PROMPT_COMMAND=echo"
|
PROMPT_COMMAND="PROMPT_COMMAND=echo"
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
|
@ -153,7 +153,7 @@ if [ "false" = "true" ] && ([ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prefer US English
|
# Prefer US English
|
||||||
export LC_ALL="en_US.UTF-8"
|
# export LC_ALL="en_US.UTF-8"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Miscellaneous
|
### Miscellaneous
|
||||||
|
@ -265,7 +265,7 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
|
||||||
command -v zoxide > /dev/null && eval "$(zoxide init bash)"
|
command -v zoxide > /dev/null && eval "$(zoxide init bash)"
|
||||||
|
|
||||||
### MOTD
|
### 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
|
if [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; then
|
||||||
. "$HOME/.local/motd.sh"
|
. "$HOME/.local/motd.sh"
|
||||||
|
|
||||||
|
|
|
@ -37,5 +37,10 @@ set visible-stats on
|
||||||
# Readline used by Bash 4.)
|
# Readline used by Bash 4.)
|
||||||
set skip-completed-text on
|
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
|
# Use Alt/Meta + Delete to delete the preceding word
|
||||||
"\e[3;3~": kill-word
|
"\e[3;3~": kill-word
|
||||||
|
|
Loading…
Reference in a new issue