-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
73 lines (60 loc) · 1.91 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# If not interactive, ignore this file
test -z "$PS1" && return
# Append to the history file, don't overwrite it
shopt -s histappend
# Don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# Alias list to make life easier
test -f "$HOME/.bash_aliases" && source "$HOME/.bash_aliases"
# Make the terminal pretty
test -f "$HOME/.bash_ps1" && source "$HOME/.bash_ps1"
# Brew prefix directory
BPRE=`brew --prefix`
# Enable programmatic completion
source $BPRE/etc/bash_completion
# Let's use Z for quick path changing
source $BPRE/etc/profile.d/z.sh
# Make grep pretty
export GREP_COLOR="1;37;41"
export LANG=C
# Make ls pretty
export CLICOLOR=1
export LSCOLORS="gxfxcxdxbxgggdabagacad"
### Color guide ###
# a black
# b red
# c green
# d brown
# e blue
# f magenta
# g cyan
# h light grey
# A bold black, usually shows up as dark grey
# B bold red
# C bold green
# D bold brown, usually shows up as yellow
# E bold blue
# F bold magenta
# G bold cyan
# H bold light grey; looks like bright white
# x default foreground or background
#
# 1. directory
# 2. symbolic link
# 3. socket
# 4. pipe
# 5. executable
# 6. block special
# 7. character special
# 8. executable with setuid bit set
# 9. executable with setgid bit set
# 10. directory writable to others, with sticky bit
# 11. directory writable to others, without sticky bit
# The default is "exfxcxdxbxegedabagacad", i.e. blue foreground and
# default background for regular directories, black foreground and red
# background for setuid executables, etc.
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting