[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default remote shell in tramp
From: |
Vinh Nguyen |
Subject: |
Re: default remote shell in tramp |
Date: |
Sat, 24 Jul 2010 21:09:41 -0700 |
On Fri, Jul 23, 2010 at 7:43 AM, Michael Albinus <address@hidden> wrote:
> Vinh Nguyen <address@hidden> writes:
>
>> I don't think this solution is feasible in that the user would have to
>> edit .bashrc file for EVERY server they use. Even so, if PS is set
>> system-wide (as was one of my case), then the user may not have the
>> permission to edit that.
>
> I have committed a patch that, when bash is called, it uses the
> arguments "-norc -noprofile" (see variable `tramp-sh-extra-args'). In
> fact, this variable did exist ever, but it wasn't used in all possible
> cases; that's why your login did hang.
>
But disables both the system-wide and the files in the personal home
directory. PATH definition in the home directory's .bashrc would not
be evaluated (which is what I would want).
> It is possible to tweak this variable to let bash evaluate either
> .bashrc or .profile. But such files must NOT et the prompt as .bashrc
> does it today - Tramp cannot handle this.
>
>> I tried looking up whether there is a way to set PATH globally for all
>> shells as my original intent was to access commands that in the PATH
>> defined in ~/.bashrc. However, this would require edits config files
>> for each shell in each system, so this approach is also probably not
>> feasible.
>>
>> What are your thoughts?
>
> Still the same what is said already in the manual: don't let your shell
> change the prompt in a way Tramp does not understand. Either suppress
> evaluating such a file during login, or change the prompt setting that
> it happens only when $TERM is set to a known value.
>
> Sorry, but I don't see a better solution.
I see.
>
>> Vinh
>
> Best regards, Michael.
>
- Re: default remote shell in tramp, Michael Albinus, 2010/07/12
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/19
- Re: default remote shell in tramp, Michael Albinus, 2010/07/20
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/20
- Re: default remote shell in tramp, Michael Albinus, 2010/07/21
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/22
- Re: default remote shell in tramp, Michael Albinus, 2010/07/23
- Re: default remote shell in tramp,
Vinh Nguyen <=
- Re: default remote shell in tramp, Michael Albinus, 2010/07/26
- Re: default remote shell in tramp, Vinh Nguyen, 2010/07/26
- Re: default remote shell in tramp, Michael Albinus, 2010/07/26