Last active
August 29, 2015 14:05
-
-
Save DennyScott/1297b59853039a67a289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SERVER CONNECTIONS | |
alias sail-cti='ssh root@104.131.250.11q' | |
alias bbiq='ssh root@104.131.200.108' | |
#RC FILES | |
alias bashrc='vim ~/.bash_profile' | |
alias vimrc='vim ~/.vimrc' | |
alias vim='mvim' | |
#Hub Alias | |
eval "$(hub alias -s)" | |
##BOWER | |
function bowin(){ | |
bower install --save $1 | |
} | |
## Android SDK | |
export PATH=${PATH}:~/Development/android/platform-tools:~/Development/android/tools | |
##Sublime | |
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH | |
export EDITOR='vim -w' | |
##CHANGE DIRECTORY | |
## get rid of command not found ## | |
alias cd..='cd ..' | |
## Add Git autocompletion | |
test -f ~/.git-completion.bash && . $_ | |
## a quick way to get out of current directory ## | |
alias ..='cd ..' | |
alias ...='cd ../../../' | |
alias ....='cd ../../../../' | |
alias .....='cd ../../../../' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../..' | |
function current() { | |
cd ~/Projects/cti/BBiQ | |
} | |
# Angular Scaffold | |
function route() { | |
if [ $# -eq 1 ] | |
then | |
yo angular:route $1 --uri=$1 | |
fi | |
if [ $# -eq 2 ] | |
then | |
yo angular:route $1 --uri=$2 | |
fi | |
} | |
##GIT FUNCTIONS | |
function push() { | |
git push origin $(parse_git_branch_bare) | |
} | |
function pull() { | |
git pull origin $(parse_git_branch_bare) | |
} | |
function parse_git_branch_bare() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/' | |
} | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " | |
##END OF GIT FUNCTIONS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment