diff --git a/.zsh_aliases b/.zsh_aliases index 95707fd..87ab25b 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -10,7 +10,8 @@ alias du='du -h' # Greps alias egrep='egrep --color=auto' # show differences in colour alias fgrep='fgrep --color=auto' # show differences in colour -alias grep='grep --color' # show differences in colour +alias grep='grep -i --color' # show case-insensitive differences in colour +alias h='history | grep' # File Listing alias l='ls -CF' # list with Columns @@ -31,6 +32,9 @@ alias warp='if [[ "$w" == "" ]]; then w="$(pwd)"; else cd "$w"; unset w; fi' # Misc Shit alias LISTEN='netstat -pant | grep LISTEN' # a quicker way to see what services are listening alias fuck='sudo $(history -p \!\!)' # runs the last command as sudo +alias ..='cd ..' +alias ...='cd ../..' +alias ....='cd ../../..' # between head and less alias page="head -n $(stty size | awk '{print $1 -2}')" @@ -50,3 +54,10 @@ alias crawlrestore='rm -rf ~/.crawl && tar xvf ~/crawlsave.tgz -C ~/ && crawl-ti # Memory Pigs (top 10) alias mempigs='ps aux | awk '\''{print $6/1024 " MB\t\t" $11 " " $12}'\'' | sort -n | tail -10' + +# Always get a proper output name from youtube-dl +alias ytdl='youtube-dl -o "%(title)s.%(ext)s"' + +# termbin shortcut +alias tb='nc bin.planethawleywood.com 9999' +