From fdf5aafb5ee34244095d971ff57ef34529c3d936 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 21 Jul 2012 18:20:16 +0900 Subject: [PATCH] update wicn --- bashrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index cb0582a..f6660b2 100755 --- a/bashrc +++ b/bashrc @@ -118,7 +118,19 @@ alias screen="screen -e^z^z" alias wic=wicd-curses alias wil="wicd-cli -y -l | head" -alias wicn="wicd-cli -y -c -n" +#alias wicn="wicd-cli -y -c -n" +wicn(){ + if test $# -eq 0 + then + local num + wicd-cli -y -l | head + echo -n "input num: " + read num + test -n "$num" && wicd-cli -y -c -n $num + else + wicd-cli -y -c -n $1 + fi +} alias aptin="apt-get install" alias aptsearch="apt-cache search"