75fda7bdc7
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
15 lines
387 B
Bash
Executable File
15 lines
387 B
Bash
Executable File
#!/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
|