summaryrefslogtreecommitdiffstats
path: root/functions
Side-by-side diff
Diffstat (limited to 'functions') (more/less context) (ignore whitespace changes)
-rw-r--r--functions28
1 files changed, 22 insertions, 6 deletions
diff --git a/functions b/functions
index 26ead44..99aa69d 100644
--- a/functions
+++ b/functions
@@ -23,7 +23,7 @@ $HOME/bin/mplayer "[email protected]"
function etym(){
-/usr/bin/w3m -dump "http://www.etymonline.com/index.php?search=$word&searchmode=none"
+/usr/bin/w3m -dump "http://www.etymonline.com/index.php?search=$word&searchmode=none" | sed -n -e "/^$word/,/^$/p"
}
function getmovie (){
@@ -58,7 +58,7 @@ mountole(){
echo "Failed :( "
return 1
fi
- ssh-expect
+ ssh-expect
}
@@ -68,8 +68,8 @@ bbcradio() { local s;echo "Select a station:";select s in 1 1x 2 3 4 5 6 7 "Asia
function def(){
- wn $1 -over
- if [ $? != "0" ];then echo $1 >> ~/wordlist;fi
+ wn "[email protected]" -over
+ if [ $? != "0" ];then echo "[email protected]" >> ~/wordlist;fi
}
@@ -115,12 +115,28 @@ for i in $pkg
do
for j in `pacman -Ql $i | cut -d " " -f 2`
do
- grep -l -i $term $j
+ =grep -l $term $j
done
done
#set +x
}
+function gdb(){
+/usr/bin/gdb --quiet
+}
+
+function genscope(){
+ /usr/bin/cscope -b -R -q
+}
+function cscope(){
+ #/usr/bin/cscope -d -f $(readlink -f (../)#cscope.out) [email protected]
+ file=$(readlink -f (../)#cscope.out)
+ [[ $? != 0 ]] && return 1
+ pushd $file:h
+ /usr/bin/cscope -d [email protected]
+ popd
+}
+
function cscore()
{
curl -s -e "http://www.google.com" -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1" "http://livechat.rediff.com:80/sports/score/score.txt"
@@ -528,7 +544,7 @@ function {news,mutt,ncm,weechat,weechat-curses,newsbeuter,ncmpcpp,atop,rtorrent,
: ${(AA)appMap:=${(z)WSETS}}
- if [[ -z $1 ]];then
+ if pgrep $app;then
sess=$(tux takeme $app)
tmux switch-client -t $sess
return