forked from veged/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.bashrc
71 lines (60 loc) · 1.77 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
export NODE_PATH=
export PATH=./node_modules/.bin:$HOME/bin:/opt/local/bin:/opt/local/sbin:$PATH
export LANG=ru_RU.UTF-8
export BLOCKSIZE=K
export EDITOR=vim
export PAGER=less
export HISTSIZE=5000
export QT_QPA_PLATFORM=""
export MAGICK_HOME="$HOME/ImageMagick-7.1.0"
export PATH="$MAGICK_HOME/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
alias la='ls -lA'
alias vim='vim -O'
alias ga='git add'
alias gb='git branch'
alias go='git checkout'
alias gi='git ci'
alias gd='git di'
alias gds='git di --staged'
alias gs='git st -sb -uall'
alias gl='git lol'
alias gp='git pull --rebase'
alias gt='git tag'
alias gr='git remote -v'
alias gh='git hist'
alias gc='git clone'
alias gmod="git status -uall --porcelain | awk '{print \$2}'"
alias gmods="git status -uall --porcelain | grep [MADRCU] | awk '{print \$2}'"
alias gvim="vim \`gmod\`"
alias gvims="vim \`gmods\`"
alias aa='arc add'
alias ab='arc branch'
alias ac='arc checkout'
alias aci='arc commit'
alias ad='arc diff'
alias ads='arc diff --staged'
alias as='arc st -sb -uall'
alias al='arc log --graph --oneline'
alias ap='arc pull'
if [ -f /usr/local/etc/bash_completion ]; then
. /usr/local/etc/bash_completion
fi
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
source ~/cfgs/git-completion.bash
source ~/cfgs/arc-completion.bash
source ~/cfgs/prompt.bash
export CLICOLOR=1
alias ls='ls --color=auto'
alias grep='grep --color=auto'
if [ -x /usr/local/bin/gdircolors ]; then
eval "$(gdircolors -b ~/cfgs/dircolors.ansi-universal)"
alias ls='gls --color=auto'
fi
if [ -x /usr/bin/dircolors ]; then
eval "$(dircolors -b ~/cfgs/dircolors.ansi-universal)"
fi