#!/bin/bash # $Header: /home/hugh/sources/misc/hless,v 1.7 2008/05/25 03:49:04 hugh Exp hugh $ # # hless is a simple script to run less in a separate xterm #set -x name="hless" terminal="xterm" string="`whereis aterm | grep bin`" if [ -n "$string" ] then terminal="aterm -fg white -ls -tr -trsb -sh 40" fi if [ $# -gt 0 ] then name="$name $*" fi if [ $# -lt 1 ] then cat - >> /tmp/$$.hless $terminal -title "$name" -n "$name" -e less /tmp/$$.hless > /dev/null 2>&1 /dev/null 2>&1