Created
September 25, 2020 16:21
-
-
Save tamboer/2b4c3324867734dab89306d398e9e542 to your computer and use it in GitHub Desktop.
common aliasses and bashrc profile addons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show weather | |
alias weather='curl wttr.in/Waregem' | |
alias weer='function _weer(){ echo "Getting weather for $1"; curl wttr.in/$1; };_weer' | |
# Which commands do I use the most? | |
alias histstats="history | awk '{CMD[\$2]++;count++;}END { for (a in CMD)print CMD[a] \" \" CMD[a]/count*100 \"% \" a;}' | grep -v './' | column -c3 -s ' ' -t | sort -nr | nl | head -n10" | |
# like `history` but with dates | |
alias h="fc -li 1" | |
# This is pretty useful for downloading mp3s of songs from youtube: | |
alias getmp3="youtube-dl -x --audio-format mp3 " | |
# usage getmp3 https://www.youtube.com/watch?v=<id-of-some-nice-tune> | |
# show pretty git diff | |
alias gitdiff='git difftool -y -x "colordiff -y -W $COLUMNS" | less -R' | |
alias h='history' | |
alias hg='history | grep ' | |
alias gss='git status' | |
alias gcheck='git checkout' | |
alias gcom='git commit -m ' | |
alias gpull='git pull ' | |
# obsolete | |
# alias gp='git pull --rebase' | |
# alias cdwinc='cd /mnt/c/Users/wille548' | |
# alias cd5480='cd /mnt/c/Users/wille548/5480.parts.dev' | |
# alias k='kubectl' | |
# alias kpf='k port-forward' | |
# alias klogs='k logs -f' | |
# alias kparts-dev='k config use-context dev' | |
# alias kparts-qa='k config use-context qa' | |
# alias kparts-prod='k config use-context prod' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment