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:

> set -Ux EDITOR emacsclient -c

best,
- Fred.



-- 
Fred Alger
@_phred


On Friday, 12 October 2012 at 05:06, Torsten Grust wrote:

> 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 
> > (http://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.
> > 
> > Thanks in advance.
> > 
> > --
> > Don't let slow site performance ruin your business. Deploy New Relic 
> > APM
> > Deploy New Relic app performance management and know exactly
> > what is happening inside your Ruby, Python, PHP, Java, and .NET app
> > Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> > http://p.sf.net/sfu/newrelic-dev2dev
> > ___
> > Fish-users mailing list
> > Fish-users@lists.sourceforge.net (mailto:Fish-users@lists.sourceforge.net)
> > https://lists.sourceforge.net/lists/listinfo/fish-users
> > 
> 
> 
> 
> -- 
> | Torsten "Teggy" Grust
> | torsten.gr...@gmail.com (mailto:torsten.gr...@gmail.com)
> 
> --
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net (mailto:Fish-users@lists.sourceforge.net)
> https://lists.sourceforge.net/lists/listinfo/fish-users
> 
> 


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


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 
> %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.
>
> Thanks in advance.
>
> --
> Don't let slow site performance ruin your business. Deploy New Relic 
> APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> ___
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users


-- 
| Torsten "Teggy" Grust
| torsten.gr...@gmail.com

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


[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.

Thanks in advance.

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users