zsh: remove common aliases
This commit is contained in:
parent
449a98b54e
commit
d386aa5403
|
@ -25,15 +25,7 @@ alias ssh='ssh -C' # Compression for all ssh connections
|
||||||
alias wget='wget -c' # Resume dl if possible
|
alias wget='wget -c' # Resume dl if possible
|
||||||
alias ydl='youtube-dl'
|
alias ydl='youtube-dl'
|
||||||
|
|
||||||
take() { mkdir "$1" && cd "$1"; }
|
|
||||||
|
|
||||||
## New tools #################################################################
|
## New tools #################################################################
|
||||||
# Intuitive map function
|
|
||||||
# For example, to list all directories that contain a certain file: find . -name
|
|
||||||
# .gitattributes | map dirname
|
|
||||||
alias map="xargs -n1"
|
|
||||||
|
|
||||||
hex() { echo -n $@ | xxd -psdu; }
|
|
||||||
|
|
||||||
# Canonical hex dump; some systems have this symlinked
|
# Canonical hex dump; some systems have this symlinked
|
||||||
is-callable hd || alias hd="hexdump -C"
|
is-callable hd || alias hd="hexdump -C"
|
||||||
|
@ -47,7 +39,6 @@ alias findc="find . -iname '*conflicted*' -type f -exec echo '\"{}\" ' \;"
|
||||||
alias bin="curl -s -F 'sprunge=<-' http://sprunge.us | head -n 1 | tr -d '\r\n ' | y"
|
alias bin="curl -s -F 'sprunge=<-' http://sprunge.us | head -n 1 | tr -d '\r\n ' | y"
|
||||||
# IP addresses
|
# IP addresses
|
||||||
alias publicip="dig +short myip.opendns.com @resolver1.opendns.com"
|
alias publicip="dig +short myip.opendns.com @resolver1.opendns.com"
|
||||||
alias localip="ipconfig getifaddr en0"
|
|
||||||
alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
|
alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
|
||||||
# View HTTP traffic
|
# View HTTP traffic
|
||||||
alias sniff="sudo ngrep -d 'en0' -t '^(GET|POST) ' 'tcp and port 80'"
|
alias sniff="sudo ngrep -d 'en0' -t '^(GET|POST) ' 'tcp and port 80'"
|
||||||
|
|
Loading…
Reference in a new issue