Created
March 11, 2019 20:06
-
-
Save opensourcekam/d62a12944af4fead67da093a4240c4dd to your computer and use it in GitHub Desktop.
My current bash profile
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
################ | |
#### RAND ## | |
################ | |
export PS1="👻 --> " | |
alias ..="cd .. && ls" | |
alias up='cd .. && ls' | |
alias down='cd && ls' | |
alias pwdc="pwd && pwd | tr -d '\n' | pbcopy" | |
################ | |
##### YARN ##### | |
################ | |
alias ys="yarn start" | |
alias yd="yarn dev" | |
alias yi="yarn install" | |
alias yc="yarn compile" | |
alias yb="yarn build" | |
alias yt="yarn test" | |
alias yl="yarn lint" | |
alias yis="yarn && yarn start" | |
alias ysb="yarn storybook" | |
############### | |
### GIT ### | |
############### | |
alias gs="git status" | |
alias gp='git push' | |
alias gpu='git pull' | |
alias gpf='git push --force' | |
alias gf='git fetch' | |
alias gb='git branch' | |
alias gnb='git checkout -b' | |
alias gco='git checkout' | |
alias gfus="git fetch upstream" | |
alias gprus="git pull --rebase upstream master" | |
############### | |
## FUNCTIONS ## | |
############### | |
function prReady { | |
gs | |
} | |
function dockerKillall { | |
docker kill $(docker ps -q) | |
} | |
############### | |
### EXPORTS ### | |
############### | |
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 | |
# export JAVA_HOME="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment