Re: alias ls does not work in screen

Chris Jones <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Sun, Mar 25, 2012 at 11:43:27PM EDT, Jingxin Feng wrote:

> Hello,
> I set up alias ls as ls -F --color=auto in .bash_profile and it works fine.
> However, when I start screen, it does not work. Do I need any special
> setting in .screenrc? Thanks
> 
> system: 2.6.35.13-92.fc14.x86_64
> 
> .screenrc
> 
> hardstatus alwayslastline
> hardstatus string '%{= kG}[ %{G}%H %{g}][%=
> %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%=
> %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
> 
> # Default screens
> ......
> 
> altscreen on
> shell $SHELL
> 

Per the FAQ at http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html,
this should be:

| shell -$SHELL            # with a ‘-’ (dash) ..

See also ‘info screen’ or ‘man screen’ for the desccription of the
‘shell’ screen command.

Otherwise you could move your alias definition to your ~/.bashrc.

CJ

-- 

WE GET SIGNAL


_______________________________________________
screen-users mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.