cleanup zsh aliases

* remove unused aliases
* remove window.zsh
This commit is contained in:
Nick Nisi
2015-06-17 15:18:20 +02:00
parent 69a938f131
commit 81e1453053
3 changed files with 1 additions and 38 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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
}