2016-04-16 16:31:54 +02:00
|
|
|
alias ll='ls -la'
|
|
|
|
alias lh='ls -lah'
|
|
|
|
alias ...='cd ../..'
|
|
|
|
alias ydl="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
|
|
|
|
alias google='ping -c 10240000 google.com'
|
|
|
|
alias foldersize='du -sh'
|
|
|
|
alias nmap_localnet='nmap -sP 192.168.1.0/24'
|
|
|
|
alias sulast='sudo $(history -p !-1)'
|
|
|
|
alias whois="whois -h whois-servers.net"
|
|
|
|
alias ltmux="if tmux has-session -t $USER; then tmux attach -t $USER; else tmux new -s $USER; fi"
|
2016-04-20 10:52:38 +02:00
|
|
|
alias ltitle='echo -ne "\033]0;$HOST\007"'
|
2016-04-24 12:40:27 +02:00
|
|
|
alias ssh-copy-id='_(){ ssh $1 -p 5022 "mkdir -m 700 ~/.ssh; echo " $(< ~/.ssh/id_rsa.pub) " >> ~/.ssh/authorized_keys ; chmod 600 ~/.ssh/authorized_keys"; }; _'
|
2016-04-16 16:31:54 +02:00
|
|
|
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
|
|
|
alias r='open -a'
|
|
|
|
alias htop='sudo htop'
|
|
|
|
alias flushdns='dscacheutil -flushcache && killall -HUP mDNSResponder'
|
|
|
|
alias pkg_add='brew install'
|
|
|
|
alias pkg_search='brew search'
|
|
|
|
alias pkg_remove='brew remove'
|
2016-04-20 10:52:38 +02:00
|
|
|
alias pkg_upgrade='brew update && brew upgrade && brew cleanup && brew cask cleanup'
|