Skip to content

Instantly share code, notes, and snippets.

@kikoseijo
Last active November 28, 2017 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kikoseijo/51152daba4c6506dd723945344564c7c to your computer and use it in GitHub Desktop.
Save kikoseijo/51152daba4c6506dd723945344564c7c to your computer and use it in GitHub Desktop.
.bash_profile (OSX - Fullstack)
# PATH and evn
export ANDROID_HOME="$HOME/Library/Android/sdk"
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH="$HOME/kscripts:$PATH"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# React-Native
alias rnr='react-native run-ios'
# NativeScript
alias ktns='tns debug ios --emulator BDBAB349-C3FD-42DF-8EE2-FB8F5FA854EC'
alias tnsclean='rm -rf platforms && rm -rf node_modules'
alias tnsdebug='tns debug ios'
alias tnsdebugt='tns debug ios --log trace'
alias tnschrome='tns debug ios --chrome --log trace'
alias tnschromet='tns debug ios --chrome '
alias tnsandroid='tns debug android --chrome --log trace'
alias tnsandroidt='tns debug android --chrome'
# SourceTree
alias stree='/Applications/SourceTree.app/Contents/Resources/stree'
# laravel new-app
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git"
alias kvlog="tail -f /Users/smac/.valet/Log/nginx-error.log"
alias kalog="tail -f storage/logs/laravel.log"
alias kllog="tail -f storage/logs/lumen.log"
alias ka="php artisan"
alias kad="php -dxdebug.remote_autostart artisan"
alias kmigrate="ka migrate"
alias krefresh="ka migrate:refresh"
alias kseed="ka db:seed"
alias kseed="ka db:seed"
alias kserve="ka serve"
alias dump="composer dump-autoload"
alias kdump="composer dump-autoload && ka config:clear && ka view:clear && ka cache:clear && ka clear-compiled"
alias kdusk="ka dusk"
alias kdserve="ka serve --env=dusk.local --port=8001"
alias klserve="php -S localhost:8000 -t public"
alias kt="phpunit"
alias klear="ka clear-compiled && ka migrate:refresh && ka db:seed"
# Generators Package
alias g:c="ka make:controller"
alias g:m="ka make:model"
alias g:v="ka make:view"
alias g:mig="ka make:migration"
alias g:t="ka make:test"
alias g:r="ka make:resource"
alias g:s="ka make:scaffold"
alias g:f="ka make:form"
# NPM
alias npmrw="npm run watch"
alias npmrb="npm run build"
# Git
alias gitdate='GIT_COMMITTER_DATE="`date`" git commit --amend --date "`date`"'
alias ga="git add"
alias gaa="git add ."
alias gc="git commit -m"
alias gp="git push"
alias gs="git status"
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 gundo='git reset HEAD~ && git clean -df'
alias AndroidStudio="open -a /Applications/Android\ Studio.app"
alias sshkey="cat $HOME/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment