Skip to content

Instantly share code, notes, and snippets.

@Gkiokan
Last active September 14, 2017 08:23
Show Gist options
  • Save Gkiokan/f65098c8ef2b5012e774e7a1cccad2dd to your computer and use it in GitHub Desktop.
Save Gkiokan/f65098c8ef2b5012e774e7a1cccad2dd to your computer and use it in GitHub Desktop.
Alias mapping in terminal
echo " > Loading Aliases "
# Basics
alias ..="cd .."
alias lsa="ls -al"
alias swatch="sass --watch "
alias sfull="sass --watch sass:css --style=compressed"
alias sf="sfull"
alias m="~/.dotfiles/mount.sh"
alias s="source ~/.dotfiles/server.sh"
alias copypath='pwd|pbcopy'
alias copysshkey='pbcopy < ~/.ssh/id_rsa.pub'
alias cleards="find . -name ‘*.DS_Store’ -type f -delete"
# Path extensions
alias path.copy="copypath"
alias path.resume="cd `pbpaste`"
# DB
alias mysql.start="brew services start mysql"
alias mysql.restart="brew services restart mysql"
alias mysql.stop="brew services stop mysql"
# Git Stuff
alias gs="git status"
alias ga="git status && git add -A :/ && git status"
alias gc="git commit"
alias gcm="git commit -m "
# Config
alias zshconfig="vim ~/.zshrc"
alias aliasconfig="vim ~/.dotfiles/alias.sh"
alias hostsconfig="sudo vim /etc/hosts"
alias envconfig="vim ~/.dotfiles/env.sh"
alias serverconfig="vim ~/.dotfiles/server.sh"
# Path Alias
alias home="cd ~"
alias p="cd ~/Projects"
alias c="cd ~/.dotfiles"
alias v="p && cd valet"
alias i="p && cd idh"
alias g="p && cd greyd"
# Dev Shortcodes
alias cppcompile='c++ -std=c++11 -stdlib=libc++'
alias nvminit='echo " > Loading NVM Enviroment" && export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"'
alias pa="php artisan "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment