Skip to content

Instantly share code, notes, and snippets.

@Wujek280
Last active February 6, 2020 11:00
Show Gist options
  • Save Wujek280/911b716cf0a9a0a555cb80fe488686e8 to your computer and use it in GitHub Desktop.
Save Wujek280/911b716cf0a9a0a555cb80fe488686e8 to your computer and use it in GitHub Desktop.
useful bash_aliases
## SYSTEM
alias wtf='sudo dmesg'
alias please='sudo'
alias t='tree --charset=UTF8 -L 1 -I "node_modules"'
alias tt='tree --charset=UTF8 -L 2 -I "node_modules" '
alias ttt='tree --charset=UTF8 -L 3 -I "node_modules"'
alias tttt='tree --charset=UTF8 -L 4 -I "node_modules"'
alias ttttt='tree --charset=UTF8 -L 5 -I "node_modules"'
## GIT
alias gbl="git for-each-ref --sort=committerdate refs/heads/ --format='%(color: red)%(committerdate:short) %(color: cyan)%(refname:short)'"
alias grho='git reset --hard origin/$(current_branch)'
alias gdiff='git diff origin/$(current_branch)'
alias gs='git status'
alias yolo='git commit -m "$(curl -s http://whatthecommit.com/index.txt)"'
## NET
alias lsofi='lsof -i -n -P | grep LISTEN'
## PATH
export PATH=~/.npm-packages/bin:$PATH
export PATH=~/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment