-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.bash_profile
94 lines (79 loc) · 3.22 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
# Aliases
alias refresh='. /Users/$USER/.bash_profile'
alias sites='cd /Users/$USER/Sites'
alias settings='cd /Users/$USER/Settings'
alias subl='open -a "Sublime Text"'
alias bash='subl ~/.bash_profile'
alias sshconfig='subl ~/.ssh/config'
alias bash_env='subl /Users/$USER/Settings/bash/.bash_profile_env'
alias hosts='subl /etc/hosts'
alias phpunit='vendor/bin/phpunit'
alias ll='ls -lhaG'
alias show_hidden_files="defaults write com.apple.finder AppleShowAllFiles TRUE"
alias hide_hidden_files="defaults write com.apple.finder AppleShowAllFiles FALSE"
alias artisan="php artisan"
alias stop_valet="sudo valet stop; brew services stop mysql;"
alias start_valet="sudo valet start; brew services start mysql;"
#Github aliases
alias gs="git status"
alias ga="git add"
alias gb="git branch"
alias gc="git commit -m"
alias gca="git commit -am"
alias gp="git pull"
alias gpu="git push"
alias gch="git checkout"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias dk='docker'
alias dkm='docker-machine'
alias dkc='docker-compose'
alias python='python3'
#Additions
#$(brew --prefix homebrew/php/php56)
export PATH="/Users/larrylaski/bin:/Users/larrylaski/.composer/vendor/bin:/usr/lib/node_modules:/usr/local/bin:/usr/local/sbin:/bin:$PATH"
export EDITOR='subl -w'
export CLICOLOR=1
export XDEBUG_CONFIG="idekey=VSCODE"
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
#Colors
txtblk='\[\033[0;30m\]' # Black - Regular
txtred='\[\033[0;31m\]' # Red
txtgrn='\[\033[0;32m\]' # Green
txtylw='\[\033[0;33m\]' # Yellow
txtblu='\[\033[0;34m\]' # Blue
txtpur='\[\033[0;35m\]' # Purple
txtcyn='\[\033[0;36m\]' # Cyan
txtwht='\[\033[0;37m\]' # White
bldblk='\[\033[1;30m\]' # Black - Bold
bldred='\[\033[1;31m\]' # Red
bldgrn='\[\033[1;32m\]' # Green
bldylw='\[\033[1;33m\]' # Yellow
bldblu='\[\033[1;34m\]' # Blue
bldpur='\[\033[1;35m\]' # Purple
bldcyn='\[\033[1;36m\]' # Cyan
bldwht='\[\033[1;37m\]' # Whiteca
txtrst='\[\033[0m\]' # Text Reset
function ps1_git_branch {
# return branch name
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo " ("${ref#refs/heads/}"$(ps1_git_dirty))"
}
function ps1_git_dirty {
# Returns "*" if the current git branch is dirty.
# echo -n ""
# DISABLED FOR PERFORMANCE
[[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && echo "*"
}
export PS1="$txtgrn$USER:$txtcyn\$PWD $txtgrn\$(ps1_git_branch)$txtylw ⚡ $txtcyn"
if [ -f $HOME/Settings/bash/.bash_profile_env ]; then
. $HOME/Settings/bash/.bash_profile_env
fi
# 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
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/larrylaski/Sites/StrongAnalytics/topbox-api/scripts/google-cloud-sdk/path.bash.inc' ]; then . '/Users/larrylaski/Sites/StrongAnalytics/topbox-api/scripts/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/larrylaski/Sites/StrongAnalytics/topbox-api/scripts/google-cloud-sdk/completion.bash.inc' ]; then . '/Users/larrylaski/Sites/StrongAnalytics/topbox-api/scripts/google-cloud-sdk/completion.bash.inc'; fi