You are not logged in.
Pages: 1
Hi,
I have options defined for less in ~/.bashrc.
LESS=--use-color --line-num-width=3
Running
xfce4-terminal -e 'less f.txt'
doesn't show colours.
Running less from the xfce4-terminal prompt "as usual" does.
Doesn't xfce4-terminal -e '<command>' read ~/.bashrc?.
Thanks
Offline
No it doesn't, because bash is invoked non-interactively: see man bash -> invocation.
You can try this:
xfce4-terminal -e "bash -ic 'less f.txt'"
Offline
Thanks .
Offline
Thanks Tamaranch! Didn't know about the interactive mode. Had the same issue as jt1122.
Offline
Pages: 1
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 521.21 KiB (Peak: 530.19 KiB) ]