Modified zsh aliases
This commit is contained in:
parent
d5a45d5883
commit
d7c857d1d9
@ -9,24 +9,21 @@ fi
|
||||
|
||||
unfunction _exists
|
||||
|
||||
alias ls="ls --color=always -h"
|
||||
alias ll="ls -lah"
|
||||
alias ls="ls -FGhkTv"
|
||||
alias ll="ls -FGhkTvl"
|
||||
|
||||
alias mkdir="mkdir -p"
|
||||
alias ...="cd ../.."
|
||||
alias foldersize="du -sh"
|
||||
alias duf="du -sk * | sort -n | while read size fname; do for unit in k M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}\t${fname}"; break; fi; size=$((size/1024)); done; done"
|
||||
alias google="ping -c 10240000 google.com"
|
||||
alias history="history -i"
|
||||
alias sulast="sudo $(history -p !-1)"
|
||||
alias ydl="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
|
||||
|
||||
case `uname` in
|
||||
Darwin)
|
||||
# commands for OS X go here
|
||||
alias flushdns="dscacheutil -flushcache && killall -HUP mDNSResponder"
|
||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
||||
alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
|
||||
alias r="open -a"
|
||||
alias ydl="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
|
||||
alias nmap_localnet="nmap -sP 10.0.3.0/24"
|
||||
alias fetch="curl -O"
|
||||
alias htop="sudo htop"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user