Skip to content

Instantly share code, notes, and snippets.

@cesalazar
Last active November 1, 2016 23:57
Show Gist options
  • Save cesalazar/b2cd5a4f1e7c5eb3657e301b092d303a to your computer and use it in GitHub Desktop.
Save cesalazar/b2cd5a4f1e7c5eb3657e301b092d303a to your computer and use it in GitHub Desktop.
I tend to curl this into .zshrc (or .bash_aliases) on new boxes
alias ll='ls -alFh'
alias rm='rm -f'
alias grep='grep -i --color'
alias lgrep='ll | grep'
alias att='tmux attach'
alias :q='exit'
alias art='php artisan'
alias rell='source ~/.zshrc && echo "Profile reloaded"'
alias cls='echo -e "...\n\n\n\n\n..."; clear'
alias gdif='git diff'
# docker
alias dk="docker"
alias dkps="dk ps -a"
alias dki="dk images -a"
alias dkrm="dk rm"
alias dkrmf="dk rm -f"
alias dktt="dk attach"
alias dkstr="dk start"
alias dkstp="dk stop"
alias dkex="dk exec"
alias dkip="dk inspect --format '{{ .NetworkSettings.IPAddress }}'"
alias sen="dk start sen && dk exec -it sen sen"
# Copy current path to clipboard
alias pwdc='pwd | tr -d "\n" | pbcopy'
# Resolve aliases
alias pwd='pwd -P'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment