[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alias ls does not work in screen

From: Chris Jones
Subject: Re: alias ls does not work in screen
Date: Mon, 26 Mar 2012 17:13:37 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

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:
> .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,
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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]