workstation/roles/home-cli/files/bashrc

32 lines
559 B
Bash

#!/bin/bash
case "$-" in
*i*)
echo "[ Reading \"$HOME/.bashrc\" ]"
;;
*)
# Shell is not interactive.
return 1
;;
esac
if [ -f /etc/bashrc ]
then
. /etc/bashrc
fi
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\] "
if [ -f "$HOME/.shrc" ]
then
. "$HOME/.shrc"
fi