# HG changeset patch # User Shingo W. Kagami # Date 1264130271 -32400 # Node ID 9333b578b2350de1a5650893feac6f2eb7aebdd0 # Parent 3178ea577286a4dd04c9d165ba5c339329b62b20 Bugs in network setting aliases are fixed. diff -r 3178ea577286 -r 9333b578b235 .zshrc.cygwin --- a/.zshrc.cygwin Fri Jan 22 00:55:44 2010 +0900 +++ b/.zshrc.cygwin Fri Jan 22 12:17:51 2010 +0900 @@ -28,8 +28,9 @@ alias dualdisp_on='wscript C:\\cygwin\\home\\swk\\lib\\disp\\toggle_dualdisp.vbs on' alias dualdisp_off='wscript C:\\cygwin\\home\\swk\\lib\\disp\\toggle_dualdisp.vbs off' -toggle='C:\\cygwin\\home\\swk\\lib\\net\\toggle_if.vbs' -alias lan_ic='wscript ${toggle} wireless disable; wscript ${toggle} lan enable; ~/lib/net/net_ic.bat' -alias lan_dhcp='wscript ${toggle} wireless disable; wscript ${toggle} lan enable; ~/lib/net/net_dhcp.bat' -alias wireless_ic='wscript ${toggle} lan disable; wscript ${toggle} wireless enable; ~/lib/net/net_ic.bat' -alias wireless_dhcp='wscript ${toggle} lan disable; wscript ${toggle} wireless enable; ~/lib/net/net_dhcp.bat' +tg='C:\\cygwin\\home\\swk\\lib\\net\\toggle_if.vbs' +alias lan_ic="wscript ${tg} wireless disable; wscript ${tg} lan enable; ~/lib/net/net_ic.sh lan" +alias lan_dhcp="wscript ${tg} wireless disable; wscript ${tg} lan enable; ~/lib/net/net_dhcp.sh lan" +alias wireless_ic="wscript ${tg} lan disable; wscript ${tg} wireless enable; ~/lib/net/net_ic.sh wireless" +alias wireless_dhcp="wscript ${tg} lan disable; wscript ${tg} wireless enable; ~/lib/net/net_dhcp.sh wireless" +unset tg