2021-03-11 22:49:39 +00:00
|
|
|
#!/bin/bash
|
2022-08-23 12:13:40 +00:00
|
|
|
case "$-" in
|
|
|
|
*i*)
|
2022-08-23 12:26:48 +00:00
|
|
|
echo "[ Reading \"$HOME/.bashrc\" ]"
|
2022-08-23 12:13:40 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# Shell is not interactive.
|
|
|
|
return 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2022-08-19 14:52:07 +00:00
|
|
|
if [ -f /etc/bashrc ]
|
2021-05-13 12:44:41 +00:00
|
|
|
then
|
2022-08-19 14:52:07 +00:00
|
|
|
. /etc/bashrc
|
2021-05-13 12:44:41 +00:00
|
|
|
fi
|
2021-02-20 22:59:54 +00:00
|
|
|
|
2022-08-19 14:52:07 +00:00
|
|
|
set -o emacs
|
|
|
|
set -o noclobber
|
|
|
|
shopt -s histappend
|
|
|
|
bind '"\e[1;5C": forward-word'
|
|
|
|
bind '"\e[1;5D": backward-word'
|
|
|
|
bind '"\e[A": history-search-backward'
|
|
|
|
bind '"\e[B": history-search-forward'
|
|
|
|
bind 'set bell-style none'
|
|
|
|
bind 'set completion-ignore-case on'
|
|
|
|
bind 'set enable-bracketed-paste off'
|
|
|
|
export PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] "
|
2021-02-20 22:59:54 +00:00
|
|
|
|
2022-08-19 14:52:07 +00:00
|
|
|
if [ -f "$HOME/.shrc" ]
|
2022-08-18 07:44:25 +00:00
|
|
|
then
|
2022-08-19 14:52:07 +00:00
|
|
|
. "$HOME/.shrc"
|
2022-08-18 07:44:25 +00:00
|
|
|
fi
|