Skip to content

Instantly share code, notes, and snippets.

@richardkeep
Last active January 24, 2020 05:39
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 richardkeep/cc10501d258fe44a28a1ced3412834bd to your computer and use it in GitHub Desktop.
Save richardkeep/cc10501d258fe44a28a1ced3412834bd to your computer and use it in GitHub Desktop.
bash aliases
# Shortcuts
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
alias copyssh="pbcopy < $HOME/.ssh/id_rsa.pub"
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"
alias c="clear"
# Directories
alias gohome="cd $HOME/code"
alias goaudit="gohome && cd audit/"
alias lt='du -sh * | sort -h'
# Laravel
alias art="php artisan"
# PHP
alias cu="composer u"
alias cda="composer dumpautoload"
# Git
alias gaa="git add ."
alias gc="git commit -m"
alias amend="git commit --amend --no-edit"
alias amendall="git add . && amend"
alias wip="git add . && git commit -m 'wip'"
alias gs="git status"
alias gb="git branch"
alias gp="git push"
alias gch="git checkout"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment