From 81e14530535867fa6fb6182a90c91dd824d229fe Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Wed, 17 Jun 2015 15:18:20 +0200 Subject: [PATCH] cleanup zsh aliases * remove unused aliases * remove window.zsh --- zsh/aliases.zsh | 8 -------- zsh/functions.zsh | 12 +----------- zsh/window.zsh | 19 ------------------- 3 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 zsh/window.zsh diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 9037302..4700451 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -25,12 +25,7 @@ alias grep='grep --color=auto' alias df='df -h' # disk free, in Gigabytes, not bytes alias du='du -h -c' # calculate disk usage for a folder -# rake fix -alias rake="noglob rake" - # Applications -alias mou='open -a Mou.app' -alias mark='open -a Marked.app' alias ios='open -a /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app' # IP addresses @@ -38,9 +33,6 @@ alias ip="dig +short myip.opendns.com @resolver1.opendns.com" alias localip="ipconfig getifaddr en1" alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'" -# Enhanced WHOIS lookups -alias whois="whois -h whois-servers.net" - # Flush Directory Service cache alias flush="dscacheutil -flushcache" diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 4fa729a..611a037 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -104,21 +104,11 @@ function extract() { } function scpp() { - scp "$1" nnisi@nisi.org:~/nisi.org/i; + scp "$1" nicknisi@nicknisi.com:/var/www/nicknisi.com/public_html/i; echo "http://nicknisi.com/i/$1" | pbcopy; echo "Copied to clipboard: http://nicknisi.com/i/$1" } -# install a grunt plugin and save to devDependencies -function gi() { - npm install --save-dev grunt-"$@" -} - -# install a grunt-contrib plugin and save to devDependencies -function gci() { - npm install --save-dev grunt-contrib-"$@" -} - # syntax highlight the contents of a file or the clipboard and place the result on the clipboard function hl() { if [ -z "$3" ]; then diff --git a/zsh/window.zsh b/zsh/window.zsh deleted file mode 100644 index 805cb92..0000000 --- a/zsh/window.zsh +++ /dev/null @@ -1,19 +0,0 @@ -# From http://dotfiles.org/~_why/.zshrc -# Sets the window title nicely no matter where you are -function title() { - # escape '%' chars in $1, make nonprintables visible - a=${(V)1//\%/\%\%} - - # Truncate command, and join lines. - a=$(print -Pn "%40>...>$a" | tr -d "\n") - - case $TERM in - screen) - print -Pn "\ek$a:$3\e\\" # screen title (in ^A") - ;; - xterm*|rxvt) - print -Pn "\e]2;$2\a" # plain xterm title ($3 for pwd) - ;; - esac -} -