-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
61 lines (43 loc) · 1.47 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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
BASH_NEWLINE="\n"
BASH_GRAY="\[\e[1;30m\]"
BASH_LIGHT_GREEN="\[\e[1;32m\]"
BASH_WHITE="\[\e[1;0m\]"
BASH_LIGHT_GRAY="\[\e[0;37m\]"
# Get git branch on terminal
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
echo "["${ref#refs/heads/}"]";
}
PS1="\W${BASH_LIGHT_GREEN}\$(parse_git_branch)${BASH_WHITE}\$ ";
# Fix LS colors
export LS_COLORS='di=01;33'
# User specific aliases and functions
alias b="bundle"
alias bi="bundle install"
alias be="bundle exec"
alias g="git"
alias cml="em CMakeLists.txt"
alias f="find . | xargs grep"
alias p="pushd"
alias o="popd"
alias op="gnome-open"
alias grep="grep --color=auto"
alias ll="ls --color"
PATH=~/repos/arcanist/bin:/local1/git/bin:/local1/emacs-v23.3/bin:/usr/local/texlive/2011/bin/x86_64-linux:/opt/android-sdk-linux/platform-tools:$PATH
export PATH
export PATH=${PATH}:~/Installs/android-sdk-linux/tools
export PATH=${PATH}:~/Installs/android-sdk-linux/platform-tools
export EDITOR=em
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export WORKON_HOME=/home/skyf/Documents/pyenvs
source ~/repos/arcanist/resources/shell/bash-completion