diff --git a/shell/zsh/aliases.zsh b/shell/zsh/aliases.zsh index cee3217b..e18143cb 100644 --- a/shell/zsh/aliases.zsh +++ b/shell/zsh/aliases.zsh @@ -25,15 +25,7 @@ alias ssh='ssh -C' # Compression for all ssh connections alias wget='wget -c' # Resume dl if possible alias ydl='youtube-dl' -take() { mkdir "$1" && cd "$1"; } - ## 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 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" # IP addresses 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 }'" # View HTTP traffic alias sniff="sudo ngrep -d 'en0' -t '^(GET|POST) ' 'tcp and port 80'"