Permalink
Browse files

define utility function: alc()

  • Loading branch information...
1 parent c208093 commit fdd7debe5c0399c8fc6d558322f168df4b4a8b8f @raimon49 committed Mar 25, 2012
Showing with 10 additions and 1 deletion.
  1. +1 −1 .alias.sh
  2. +9 −0 .zshrc
View
@@ -22,5 +22,5 @@ if [ -n "${ZSH_VERSION}" ]; then
alias -g T=" | tail"
alias -g L=" | ${PAGER}"
alias -g V=" | vim -R -"
- alias -g W=" | w3m -T text/html"
+ alias -g W=" | w3m -no-cookie -T text/html"
fi
View
@@ -150,6 +150,15 @@ setopt no_multios
# 拡張グロブ
setopt extended_glob
+# ユーティリティ
+function alc() {
+ if [ -n "$1" ]; then
+ w3m -no-cookie "http://eow.alc.co.jp/${1}/UTF-8/?ref=sa" | sed '1,36d' | ${PAGER}
+ else
+ echo 'usage: alc word'
+ fi
+}
+
# エイリアス
if [ -e ~/.alias.sh ]; then
source ~/.alias.sh

0 comments on commit fdd7deb

Please sign in to comment.