-
Notifications
You must be signed in to change notification settings - Fork 97
/
.bashrc
53 lines (41 loc) · 1.22 KB
/
.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
50
51
52
53
# ~/.bashrc
# vim:set ft=sh sw=2 sts=2:
source "$HOME/.sharedrc"
# Store 10,000 history entries
export HISTSIZE=10000
# Don't store duplicates
export HISTCONTROL=erasedups
# Append to history file
shopt -s histappend
VISUAL=vim
EDITOR="$VISUAL"
LESS="FRX"
RI="--format ansi -T"
PSQL_EDITOR='vim -c"setf sql"'
CLICOLOR=1
LSCOLORS=gxgxcxdxbxegedabagacad
export VISUAL EDITOR LESS RI PSQL_EDITOR CLICOLOR LSCOLORS
if [ -t 1 ]; then
bind 'set bind-tty-special-chars off'
bind '"\ep": history-search-backward'
bind '"\en": history-search-forward'
bind '"\C-w": backward-kill-word'
bind '"\C-q": "%-\n"'
fi
export HISTIGNORE="%*"
[ -z "$PS1" ] || stty -ixon
prefix=
if [ -n "$SSH_CONNECTION" ]; then
prefix="\[\033[01;33m\]\u@\h"
else
prefix="\[\033[01;32m\]\u@\h"
fi
[ -z "$PS1" ] || export PS1="$prefix\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$(git_prompt_info '(%s)')$ "
if [ -f '/usr/local/etc/bash_completion.d/git-completion.bash' ]; then
source '/usr/local/etc/bash_completion.d/git-completion.bash'
fi
# Aliases
# * Additional aliases are found in `.sharedrc`
#
alias reload='source ~/.bash_profile; echo -e "\n\u2699 \033[0;33mBASH config reloaded\033[0m \u2699"'
[ ! -f "$HOME/.bashrc.local" ] || . "$HOME/.bashrc.local"