forked from ClearCarbon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
70 lines (55 loc) · 1.69 KB
/
bashrc
File metadata and controls
70 lines (55 loc) · 1.69 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
umask 0022
# If not running interactively, return
[ -z "$PS1" ] && return
# after this line is for interactive only
export EDITOR="vim"
export TERM=xterm-256color
set -o vi
# this is for ansible to show running output
export PYTHONUNBUFFERED=1
# history config
shopt -s histappend
shopt -s cmdhist
HISTCONTROL=ignoredups:ignorespace
HISTSIZE=10000
HISTFILESIZE=-1
HISTTIMEFORMAT='%F %T '
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
shopt -s checkwinsize
shopt -s cdspell
shopt -s globstar
shopt -s checkjobs
shopt -s extglob
shopt -s autocd
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# search for dirs in home
export CDPATH=.:~
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
source /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
source /etc/bash_completion
fi
# this fixes the g git alias
if [ -f /usr/share/bash-completion/completions/git ]; then
source /usr/share/bash-completion/completions/git
elif [ -f /etc/bash_completion/completions/git ]; then
source /etc/bash_completion/completions/git
fi
fi
if [ -f ~/dotfiles/liquidprompt/liquidprompt ]; then
[[ $- = *i* ]] && source ~/dotfiles/liquidprompt/liquidprompt
fi
if [ -f ~/dotfiles/solarized/dircolors-solarized/dircolors.ansi-dark ]; then
eval `dircolors ~/dotfiles/solarized/dircolors-solarized/dircolors.ansi-dark`
fi
if [ -f ~/dotfiles/bashmarks.sh ]; then
source ~/dotfiles/bashmarks.sh
fi
if [ -f ~/dotfiles/z/z.sh ]; then
source ~/dotfiles/z/z.sh
fi
if [ -f ~/dotfiles/bash_aliases ]; then
source ~/dotfiles/bash_aliases
fi