Skip to content

Instantly share code, notes, and snippets.

@MatthieuScarset
Last active December 25, 2017 14:43
Show Gist options
  • Save MatthieuScarset/ddebf62234b0da50abab12aa47b502bc to your computer and use it in GitHub Desktop.
Save MatthieuScarset/ddebf62234b0da50abab12aa47b502bc to your computer and use it in GitHub Desktop.
My custom bash aliases
# Rexecute last cmd as root
alias fuck='$(history -p \!\!)'
# Folders related aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Typo (because I type quick and dirty...)
alias cc='clear'
alias claer='clear'
alias cear='clear'
alias cealr='clear'
alias cleqr='clear'
# Git related
alias gitu='git status'
alias gitcancel='git reset --soft HEAD@{1}'
alias gitlog='git log --all --graph --oneline --decorate'
alias gitinspect='~/gitinspector/gitinspector.py -r --format=html -f=html,php,scss,js > ~/Desktop/$1'
alias gitsubtree='git log | grep git-subtree-dir | tr -d ' ' | cut -d ":" -f2 | sort | uniq'
# NPM Please
alias npmplease='rm -rf node_modules/ && rm -f package-lock.json && npm install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment