A place to put various shell scripts I wrote.
The first too are command line wrappers to BeHappy, that selects either BeBook or Man pages and asks it to find the argument. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23958 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage:"
|
||||
echo "$0 search_term"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
$(query -a '(BEOS:APP_SIG=="application/x-vnd.STertois.BeHappy")' | head -1) &
|
||||
sleep 1
|
||||
LASTWIN=$(hey BeHappy count Window | grep result | cut -d ' ' -f 7)
|
||||
let LASTWIN="$LASTWIN - 1"
|
||||
hey BeHappy set Book of Window $LASTWIN to "Be Book" > /dev/null
|
||||
hey BeHappy set Topic of Window $LASTWIN to "$1" > /dev/null
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage:"
|
||||
echo "$0 search_term"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
$(query -a '(BEOS:APP_SIG=="application/x-vnd.STertois.BeHappy")' | head -1) &
|
||||
sleep 1
|
||||
LASTWIN=$(hey BeHappy count Window | grep result | cut -d ' ' -f 7)
|
||||
let LASTWIN="$LASTWIN - 1"
|
||||
hey BeHappy set Book of Window $LASTWIN to "Man pages" > /dev/null
|
||||
hey BeHappy set Topic of Window $LASTWIN to "$1" > /dev/null
|
||||
Reference in New Issue
Block a user