aboutsummaryrefslogtreecommitdiff
path: root/dot_bashrc
blob: 4ccabd8a2b6a10956e7bf30e4be1f3eae42e3b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
stty -ixon # Disable ctrl-s and ctrl-q.
shopt -s autocd cdspell checkjobs extglob histappend

#autocd : Allows you to cd into directory merely by typing the directory name.
#cdspell : minor errors in the spelling of a directory component in a cd command are corrected
#checkjobs : bash lists the status of any stopped and running jobs before exiting an interactive shell
#extglob : extended globing, advanced pattern matching
#histappend:  append to the history instead of overwriting (good for multiple connections)

HISTSIZE= HISTFILESIZE= # Infinite history.
HISTCONTROL="ignorespace"

# ignore duplicate commands, ignore commands starting with a space
export HISTCONTROL=erasedups


PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\w\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" ; export PS1

[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"

figlet "$0" | lolcat -f -r -l -v 1 -h 1