-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
97 lines (81 loc) · 2.72 KB
/
.bash_profile
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Start vim with obsession when no file provided
function vim() {
if test $# -gt 0; then
env vim "$@"
elif test -f Session.vim; then
env vim -S
else
env vim -c Obsession
fi
}
alias ls="ls -G"
alias ll="ls -lh"
alias grep='grep --color=auto --exclude=\*.{swp} -I --exclude="*.git/*" --exclude="*cover/*" --exclude="*env/*" --exclude="*.tags"'
alias ggrep="git grep --color=auto -I"
alias grepnt='grep --exclude="*/test/*"'
alias agnt='ag --ignore=*test* --ignore=*migrations*'
alias shell="./manage.py shell"
alias mctags="ctags -R -f ./.tags ."
alias rmpyc="find . -name "*.pyc" -exec rm {} \;"
alias g="git"
alias ga="git add"
alias gb="git branch -v"
alias gc="git commit -m"
alias gca="git commit --amend --no-edit"
alias gcam="git commit --amend"
alias gco="git checkout"
alias gcom="git checkout origin/master"
alias gcp="git cherry-pick"
alias gr="git rebase -i"
alias grh="git rebase -i HEAD"
alias gra="git rebase --abort"
alias grc="git rebase --continue"
alias gre="git rebase --edit-todo"
alias grm="git rebase -i master"
alias gfp="git fetch -p"
alias gp="git push origin master"
alias gpo="git push origin"
alias gs="git status -s"
alias gsv="git status"
alias gsf="git diff --name-only HEAD^ HEAD"
alias gst="git stash"
alias gstp="git stash pop"
alias gll="git lol"
alias gl="git lol -n 20"
alias gd="git diff"
alias gds="git diff --name-status"
alias gdm="git diff origin/master"
alias gpl="git pull origin master --rebase"
alias gsub="git submodule update"
alias gsom="git rev-parse origin/master | tee >(pbcopy)"
alias gbt="fp branch track"
alias gbc="fp branch create"
alias gbs="fp branch submit"
alias gss="fp stack submit"
alias gsr="fp stack restack"
alias gts="fp repo sync -f"
alias gbu="fp branch up"
alias gbd="fp branch down"
alias tmux="TERM=screen-256color-bce tmux"
export PS1="\[\033[32m\]\D{%H:%M:%S} \[\033[35m\]\h:\[\033[33;1m\]\W\[\033[m\] \[\033[36m\]\u\[\033[m\]\n\[\033[31m\]$\[\033[m\] "
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export VISUAL=vim
export EDITOR="$VISUAL"
export HISTCONTROL=ignoreboth:erasedups
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/go/bin/
if [ $ITERM_SESSION_ID ]; then
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; '
fi
eval "$(/opt/homebrew/bin/brew shellenv)"
. "$HOME/.cargo/env"
alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"
export PGDATA=/opt/homebrew/var/postgres start
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
source ~/dot-files/.fp_rc
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