summaryrefslogtreecommitdiff
path: root/.config/shell/.bashrc
blob: 1a66eb0ffe457b9c0fa5e9c64062121976ef53fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Source aliases and shortcuts
source ~/.config/shell/aliasrc
source ~/.config/shell/shortcutsrc

# History file settings
HISTSIZE=
HISTFILE="~/.cache/bash_history"
HISTFILESIZE=
HISTTIMEFORMAT="%a, %d %b %Y %T %z "

# Shell Options
set -o vi
shopt -s autocd
shopt -s histappend
shopt -s checkwinsize

# Prompt
color_prompt=yes
PS1='\[\033[1;30m\][\u@\h:]\[\033[1;31m\]\W\[\033[1;30m\]\[\033[0m\]\$ '

if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi