comparison .bashrc @ 19:9e2d6f9974a2

remove unneeded functionality from .bashrc
author k0s <k0scist@gmail.com>
date Mon, 22 Feb 2010 13:50:08 -0500
parents 9541511ed9d0
children a0636527f809
comparison
equal deleted inserted replaced
18:ae0ffe7c9040 19:9e2d6f9974a2
162 162
163 killbyname() { 163 killbyname() {
164 kill `isrunning "$@" | awk '{ print $1 }' | onelineit.py` 164 kill `isrunning "$@" | awk '{ print $1 }' | onelineit.py`
165 } 165 }
166 166
167 ztest() {
168
169 ZCTL=`find $PWD -name 'zopectl'`
170 if [ ! -x "$ZCTL" ]
171 then
172 echo 'zopectl not found'
173 return 1
174 fi
175
176 if [ "$#" == "1" ]
177 then
178 FLAG="False"
179 for i in '-h' '--help'
180 do
181 if [ "$i" == "$1" ]
182 then
183 FLAG="True"
184 break
185 fi
186 if [ "$FLAG" == "False" ]
187 then
188 ${ZCTL} test -s Products.$1 2>&1 | zfilt
189 echo "i'm done!"
190 return 0
191 fi
192 done
193
194 fi
195
196 return 0
197
198 ${ZCTL} test $@ 2>&1 | zfilt
199
200 }
201 167
202 tf() { 168 tf() {
203 if [[ $@ ]] 169 if [[ $@ ]]
204 then 170 then
205 echo "true" 171 echo "true"