Re: [Fish-users] How to set variables for less with source-highlight

2012-10-12 Thread Fred Alger
I generally set environment variables like EDITOR, BROWSER, and SSH_AGENT* using fish's "universal variable server," pretty much like putting it in your .bashrc but with two benefits: 1.) all running shells get updated as soon as you set the variable and 2.) you never have to edit a config: > s

Re: [Fish-users] How to set variables for less with source-highlight

2012-10-12 Thread Torsten Grust
Hi there, environemt variables are set via `set' in fish. Try > help set and > set -x LESS '-R' for example. Cheers, --Torsten On 12 Oct 2012, at 10:06, Wai Yan Pong wrote: > In Bash, it is done by > > export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh

[Fish-users] How to set variables for less with source-highlight

2012-10-12 Thread Wai Yan Pong
In Bash, it is done by export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" export LESS=' -R ' see http://linux-tips.org/article/78/syntax-highlighting-in-less How to do that in fish? I set the two variables with those values in fish but it does not have the desired result.