Added some new aliases
This commit is contained in:
13
.zsh_aliases
13
.zsh_aliases
@@ -10,7 +10,8 @@ alias du='du -h'
|
|||||||
# Greps
|
# Greps
|
||||||
alias egrep='egrep --color=auto' # show differences in colour
|
alias egrep='egrep --color=auto' # show differences in colour
|
||||||
alias fgrep='fgrep --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
|
# File Listing
|
||||||
alias l='ls -CF' # list with Columns
|
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
|
# Misc Shit
|
||||||
alias LISTEN='netstat -pant | grep LISTEN' # a quicker way to see what services are listening
|
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 fuck='sudo $(history -p \!\!)' # runs the last command as sudo
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias ...='cd ../..'
|
||||||
|
alias ....='cd ../../..'
|
||||||
|
|
||||||
# between head and less
|
# between head and less
|
||||||
alias page="head -n $(stty size | awk '{print $1 -2}')"
|
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)
|
# Memory Pigs (top 10)
|
||||||
alias mempigs='ps aux | awk '\''{print $6/1024 " MB\t\t" $11 " " $12}'\'' | sort -n | tail -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'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user