-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
58 lines (48 loc) · 1.17 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
PATH=$PATH:/opt/local/bin
# no duplicate line or line with spaces in history
HISTCONTROL=ignoreboth
#append to history file
shopt -s histappend
# history length
HISTSIZE=100000
HISTFILESIZE=2000
#update values of LINES and COLUMNS
shopt -s checkwinsize
export EDITOR=vim
# pyenv setting
if [[ -x "$(command -v pyenv)" ]]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
if [ -e /usr/bin/xsel ]; then
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
alias tmux-copy='tmux save-buffer - | pbcopy'
fi
#alias
alias gcc='gcc -Wall -g'
alias ls='ls -FG'
alias grep='grep --color=always'
if [[ -x $(command -v del) ]]; then
alias rm='del'
fi
if [[ -x "$(command -v colordiff)" ]]; then
alias diff='colordiff -u'
else
alias diff='diff -u'
fi
#vim
if [[ -e /opt/local/bin/vim ]]; then
alias vim='/opt/local/bin/vim'
alias vi='/opt/local/bin/vim'
alias v='/opt/local/bin/vim'
else
alias vim='/usr/bin/vim'
alias vi='/usr/bin/vim'
alias v='/usr/bin/vim'
fi
if [[ -e /usr/bin/virtualenvwrapper.sh ]]; then
source /usr/bin/virtualenvwrapper.sh
export WORKON_HOME=~/.virtualenvs
fi