-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
43 lines (35 loc) · 1.17 KB
/
Copy path.bashrc
File metadata and controls
43 lines (35 loc) · 1.17 KB
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
#aliases for regular stuff
alias ls="ls -lta"
#git aliases
alias gg="git grep"
alias checkout="git checkout"
alias fetch="git fetch upstream"
alias rebase="git rebase upstream/master"
alias fr="fetch && rebase"
alias status="git status"
alias branch="git branch"
alias add="git add ."
alias commit="git commit -m"
# nvm
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
#quickly edit and source bashrc
alias vimb="vim ~/.bashrc"
alias s="source ~/.bash_profile"
# Fix SSH auth socket location so agent forwarding works with tmux
# Predictable SSH authentication socket location.
SOCK="/tmp/ssh-agent-$USER-screen"
if test $SSH_AUTH_SOCK && [ $SSH_AUTH_SOCK != $SOCK ]
then
ln -sf $SSH_AUTH_SOCK $SOCK
export SSH_AUTH_SOCK=$SOCK
fi
#show current git branch
function current_git_branch {
echo `git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'`
}
export MAKE_MY_JS_PRETTY=1
shopt -s globstar
export CLICOLOR=1
export PS1="\\$ \[\e[1;34m\]\u@\h\[\e[m\] - \[\e[1;34m\]\w\[\e[m\] - \[\033[33m\]\$(current_git_branch)\[\033[00m\] \n> \[$(tput sgr0)\]"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion