A silly suggestion:
alias ssh='ssh -X'
On Sun, Jun 26, 2011 at 4:15 PM, alphachi wrote:
> Thanks for your opinions, but the problem can't be resolved. Look at the
> comparison:
>
> 1. tmux of console:
> $TERM is screen.
> $tty is pts/*.
> $DISPLAY don't exists.
>
> 2. ssh to other host in tmux o
Thanks for your opinions, but the problem can't be resolved. Look at the
comparison:
1. tmux of console:
$TERM is screen.
$tty is pts/*.
$DISPLAY don't exists.
2. ssh to other host in tmux of console:
$TERM is screen.
$tty is pts/*.
$DISPLAY don't exists.
3. tmux of X:
$TERM is screen.
$tty is p
good point, you won't have DISPLAY set in console
On Thu, Jun 16, 2011 at 07:38:20AM -0700, Randy Stauner wrote:
>Do you have a `tty` command? **that may show "/dev/tty1" vs "/dev/pts/3"
>which could identify it.
>There may be other environment settings you could consult as well...
>
Do you have a `tty` command? that may show "/dev/tty1" vs "/dev/pts/3"
which could identify it.
There may be other environment settings you could consult as well...
You could output your environment to a file under each of Console and X and
then diff them.
On Wed, Jun 15, 2011 at 12:29 AM, Nich
You can probably look at tmux lsc and see if you are on a pty or
/dev/console or whatever.
On Wed, Jun 15, 2011 at 03:15:32PM +0800, alphachi wrote:
>Sorry my express...
>
>This is my .cshrc:
>...
>** if ($TERM == "cons25") then
>** set prompt = "%m:%l
Sorry my express...
This is my .cshrc:
...
if ($TERM == "cons25") then
set prompt = "%m:%l=%// > "
else
set prompt = "%{\e]0;%m:%l=%//\a%}> "
endif
...
Under the console, the screen is:
...
...
...
hostname:tty=path >
...
Under xterm, the screen is:
...
...
..
you can check if you are inside tmux by checking $TMUX
but of course you can't tell what the outside terminal is, tmux hides
it, that's the point
On Wed, Jun 15, 2011 at 01:35:34PM +0800, alphachi wrote:
>I want to customize my csh prompt based on the current environment. For
>example, I