Discussion:
[Fish-users] How to set variables for less with source-highlight
Wai Yan Pong
2012-10-12 08:06:33 UTC
Permalink
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.
Torsten Grust
2012-10-12 09:06:55 UTC
Permalink
Hi there,

environemt variables are set via `set' in fish. Try
help set
and
set -x LESS '-R'
for example.

Cheers,
--Torsten
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
https://lists.sourceforge.net/lists/listinfo/fish-users
--
| Torsten "Teggy" Grust
| ***@gmail.com
Fred Alger
2012-10-12 16:22:51 UTC
Permalink
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
set -Ux EDITOR emacsclient -c
best,
- Fred.
--
Fred Alger
@_phred
Hi there,
environemt variables are set via `set' in fish. Try
help set
and
set -x LESS '-R'
for example.
Cheers,
--Torsten
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
https://lists.sourceforge.net/lists/listinfo/fish-users
--
| Torsten "Teggy" Grust
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/fish-users
Continue reading on narkive:
Loading...