Skip to content

Instantly share code, notes, and snippets.

@weotch
Last active April 13, 2016 15:28
Show Gist options
  • Save weotch/76f3bdecad79ba60435f to your computer and use it in GitHub Desktop.
Save weotch/76f3bdecad79ba60435f to your computer and use it in GitHub Desktop.
.bash_profile
# Path
export PATH="~/.composer/vendor/bin:/usr/local/bin:/Applications/MAMP/bin/php/php5.5.26/bin:$PATH"
# Change prompt
export PS1="\[\e[0;36m\]\w \[\e[33m\]⇢\[\e[49m\] \[\e[m\]"
# Use atom as editor
export EDITOR='atom --wait'
export GIT_EDITOR='atom --wait'
# Artisan shorthands
# https://laravel-news.com/2014/07/laravel-bash-aliases/
alias a="php artisan"
alias art="php artisan"
alias artisan="php artisan"
# Run an npm script
alias run="npm run"
# Create a deduped and prined shrinkwrap file
alias shrink="npm dedupe && npm prune && npm shrinkwrap"
# Update npm deps and shrinkwrap
alias npmup="npm update && shrink"
# Rename terminal window and tab
# http://thelucid.com/2012/01/04/naming-your-terminal-tabs-in-osx-lion/
function tabname {
printf "\e]1;$1\a"
}
function winname {
printf "\e]2;$1\a"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment