-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
executable file
·73 lines (63 loc) · 2.18 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
# ----------------------
# Git Aliases
# ----------------------
alias ga='git add'
alias gam='git add -A && git commit -m '
alias sgam='export SKIP=1 && git add -A && git commit -m '
alias gaa='git add -A && git commit --amend'
alias gaap='git add -A && git commit --amend && git push -f'
alias gb='git branch'
alias gbd='git branch -d '
alias gbs='git branch --sort=-committerdate'
alias gc='git commit'
alias gcm='git commit -m'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcom='git checkout master'
alias gd='git diff'
alias gda='git diff HEAD'
alias gi='git init'
alias gl='git log'
alias glg='git log --graph --oneline --decorate --all'
alias gld='git log --pretty=format:"%h %ad %s" --date=short --all'
alias gm='git merge --no-ff'
alias gp='git pull'
alias gss='git status -s'
alias gst='git stash'
alias gstl='git stash list'
alias gstp='git stash pop'
alias gstd='git stash drop'
alias gpo='git pull origin'
alias gtmp='gaa && gcm "Temporary commit to check out another branch"'
alias gcf='gam "Conflicts fixed"'
alias gurl='git remote -v'
alias gdlb='~/Projects/sh/deleteLocalBranch.sh'
alias gdb='~/Projects/sh/deleteRemoteAndLocalBranch.sh'
alias grb='~/Projects/sh/renameBranch.sh'
# preactions
alias gitoa='~/Projects/sh/gito.js -a'
alias gitoc='~/Projects/sh/gito.js -c'
alias gitor='~/Projects/sh/gito.js -r'
alias tb='cd ~/Projects/tron/tron-box'
alias tw='cd ~/Projects/tron/tron-web'
alias tq='cd ~/Projects/docker-tron-quickstart'
# ----------------------
# Git Functions
# ----------------------
# Git log find by commit message
function glf() { git log --all --grep="$1"; }
#nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
export PATH=$PATH:$HOME/bin
if [ -e /Users/sullof/.nix-profile/etc/profile.d/nix.sh ]; then . /Users/sullof/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
source ~/bin/git-prompt.sh
export PS1='[\W$(__git_ps1 " (%s)")]\$ '
source ~/bin/git-completion.bash
source ~/.profile
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
export EDITOR=/usr/bin/nano
export GOPATH=$HOME/go