forked from benmezger/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_bashrc
50 lines (40 loc) · 1.28 KB
/
dot_bashrc
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export PATH=$HOME/.bin:$PATH
if [[ $OSTYPE == 'darwin'* ]]; then
export PATH=$PATH:$(brew --prefix)/bin
export PATH=$PATH:$(brew --prefix)/opt/coreutils/libexec/gnubin
else
export PATH=$PATH:/usr/local/bin
fi
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
if ! shopt -oq posix; then
if [[ $OSTYPE == 'darwin'* ]]; then
if [ -f $(brew --prefix)/share/bash-completion/completions/ ]; then
. $(brew --prefix)/share/bash-completion/completions
fi
else
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
fi
# set vi-mode
set -o vi
# setup nice colors
eval `dircolors ~/.dircolors`
export PS1="[@\[$(tput sgr0)\]\[\033[38;5;45m\]\W\[$(tput sgr0)\]] \\$ \[$(tput sgr0)\]"
# env-secrets
if [ -f "$HOME/.env-secrets" ]; then
source "$HOME/.env-secrets"
fi