Skip to content

Instantly share code, notes, and snippets.

@nissicreative
Last active July 23, 2018 13:26
Show Gist options
  • Save nissicreative/4bb3548fcf22d750be505e3c3e7249ed to your computer and use it in GitHub Desktop.
Save nissicreative/4bb3548fcf22d750be505e3c3e7249ed to your computer and use it in GitHub Desktop.
####################
# ALIASES
####################
alias cpwd="pwd | tr -d '\n' | pbcopy && echo 'Current working directory copied to clipboard.'";
alias flushdns="sudo killall -HUP mDNSResponder";
# .bash_profile
alias sbp="source ~/.bash_profile && echo '.bash_profile sourced.'";
alias subp="subl ~/.bash_profile";
# Format directory listings
alias ll="ls -alGFh";
alias ls="ls -GFh";
# Vagrant / Homestead
alias hu="cd ~/Homestead && vagrant up";
alias vu="vagrant up";
alias vp="vagrant provision";
alias vm="cd ~/Homestead && vagrant ssh";
# Git
alias gs="git status";
alias gss="git status -s";
alias gaa="git add --all";
alias gcm="git commit -m";
alias gc="git checkout";
alias gcb="git checkout -b";
alias gnew="git init && gaa && gcm";
alias refresh="git checkout master && dskil && git pull && git fetch -p";
alias dskil="find . -name '*.DS_Store' -type f -delete";
alias gm="git merge";
alias gmm="git checkout master && git merge";
alias gq="gaa && gcm";
alias gt="gittower";
# Composer
alias ci="composer install";
alias cu="composer update";
alias cda="composer dump-autoload";
# NPM & Gulp
alias gw="gulp watch"
alias gp="gulp --production"
alias nrw="npm run watch"
alias nrd="npm run development"
alias nrp="npm run production"
alias nrb="npm run build"
####################
# PREFERENCES
####################
# iTerm
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
####################
# PATH
####################
# Homebrew
export PATH="/usr/local/sbin:${PATH}";
# PHP 7.1
export PATH="$(brew --prefix homebrew/php/php71)/bin:${PATH}";
# Composer
export PATH="${PATH}:~/.composer/vendor/bin";
# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}";
export PATH;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment