-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
62 lines (49 loc) · 1.89 KB
/
Copy path.bashrc
File metadata and controls
62 lines (49 loc) · 1.89 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
set -o vi
alias ll='ls -la'
alias cc='clear'
alias h='history'
alias es='exec ${SHELL}'
alias tu='top -o cpu' #cpu
alias tm='top -o vsize' #memory
alias bx='bundle exec'
alias submodule_sha='git ls-tree master'
alias jest_debug='node --inspect-brk node_modules/.bin/jest --runInBand'
#git
alias gcm='git commit -m'
alias gca='git commit --amend'
alias grc='git rebase --continue'
alias gcpc='git cherry-pick --continue'
alias gpshom='git push origin master'
alias gplom='git pull origin master'
alias gsl='git stash list'
alias gsp='git stash pop'
alias consoletunnel='ngrok http 11515 -subdomain=noahthegrant'
function mkcd {
mkdir $1
cd $1
}
showBranch(){
if [$(pwd | grep "projects|www") != ""]; then
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/±\1/'
fi
}
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
export PS1='\e[01;32m\u\e[34m@\H \e[01;31m\w \e[32;0m$(showBranch showSHA) \n\[\e[\e[0m\]ʃ \[\e[0m\]'
PATH="$PATH:/usr/local/sbin"
### Adding coreutils via homebrew and not wanting to prepend commands with a 'g'
#export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
#export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export EDITOR='/usr/bin/vim'
# PATH=/Users/Noah/.rvm/gems/ruby-2.0.0-p481/bin:/Users/Noah/.rvm/gems/ruby-2.0.0-p481@global/bin:/Users/Noah/.rvm/rubies/ruby-2.0.0-p481/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/Users/Noah/.rvm/bin
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
export NPM_PACKAGES_READ_TOKEN=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
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
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH=$BUN_INSTALL/bin:$PATH