Re: dict not piping through less/pager



On 2008-04-30, johnny bobby bee <useraddshine-no_spam_eh@xxxxxxxx> wrote:


I tried that among other things to ~/.dictrc and i keep getting an error:
$dict apple
$~/.dictrc:1: syntax error, unexpected TOKEN_STRING, expecting TOKEN_SERVER
$~/.dictrc:1: pager less
$~/.dictrc:1: ^^^^^
dict (yyerror): parse error

'man' is your friend.

Not always; Option --pager is now depricated in dict.

Any other suggestions?

Use a function:

dict () {
/usr/bin/dict "$@" |less
}

.



Relevant Pages