-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_linux
43 lines (34 loc) · 876 Bytes
/
.bash_linux
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
# Add this to your ~/.bash_profile
# [ -r ~/.bash_linux ] && . ~/.bash_linux
# Set Lang
export LC_ALL="en_US.UTF-8"
findpid() {
ps aux | grep $1 | awk '{print $2}'
}
killmatch() {
pid=$1; shift
findpid $pid | xargs kill "$@"
}
# Utilities
alias ls="ls -alh --color=auto"
alias tail="tail -fn 150"
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
# Editor
export EDITOR="vim"
# Colorize
export CLICOLOR=1
# Colored grep
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;33'
# Larger bash history
export HISTSIZE=32768
export HISTFILESIZE=$HISTSIZE
export HISTCONTROL=ignoredups
# Ruby
# export RUBY_HEAP_MIN_SLOTS=1000000
# export RUBY_HEAP_SLOTS_INCREMENT=1000000
# export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
# export RUBY_GC_MALLOC_LIMIT=100000000
# export RUBY_HEAP_FREE_MIN=500000
# export RAILS_ENV=development
# export RACK_ENV=development