@ -111,15 +111,11 @@ if zstyle -t ':prezto:module:utility:grep' color; then
fi
fi
# Mac OS X Everywhere
# Mac OS X Everywhere
if [ [ " $OSTYPE " = = darwin* ] ] ; then
if [ [ " $OSTYPE " = = cygwin* ] ] ; then
alias o = 'open'
elif [ [ " $OSTYPE " = = cygwin* ] ] ; then
alias o = 'cygstart'
alias o = 'cygstart'
alias pbcopy = 'tee > /dev/clipboard'
alias pbcopy = 'tee > /dev/clipboard'
alias pbpaste = 'cat /dev/clipboard'
alias pbpaste = 'cat /dev/clipboard'
else
else
alias o = 'xdg-open'
if ( ( $+commands[ xclip] ) ) ; then
if ( ( $+commands[ xclip] ) ) ; then
alias pbcopy = 'xclip -selection clipboard -in'
alias pbcopy = 'xclip -selection clipboard -in'
alias pbpaste = 'xclip -selection clipboard -out'
alias pbpaste = 'xclip -selection clipboard -out'
@ -129,6 +125,20 @@ else
fi
fi
fi
fi
function o( ) {
open_cmd = 'xdg-open'
if [ [ " $OSTYPE " = = darwin* ] ] ; then
open_cmd = 'open'
elif [ [ " $OSTYPE " = = cygwin* ] ] ; then
open_cmd = 'cygstart'
fi
for f in " $@ "
do
$open_cmd $f
done
}
alias pbc = 'pbcopy'
alias pbc = 'pbcopy'
alias pbp = 'pbpaste'
alias pbp = 'pbpaste'