[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to let tramp be aware the virtualenv?
From: |
Michael Albinus |
Subject: |
Re: How to let tramp be aware the virtualenv? |
Date: |
Wed, 17 Jul 2019 16:05:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Zhongwei Yao <ashi08104@gmail.com> writes:
Hi,
> Thanks. I try emacs27 and using connection-local-set-profiles. And I
> can run into bash in compile command. But running into bash is not my
> objective. (I try to add source my/python/virtualenv/bin/activate to
> bashrc, and it doesn't work. The bash run in non-interative shell and
> seems doesn't read my bashrc).
Well, if you use connection-local variables, you could say to bash what
to do. Likely, you have defined something like
--8<---------------cut here---------------start------------->8---
(connection-local-set-profile-variables
'remote-bash
'((explicit-shell-file-name . "/bin/bash")
(explicit-bash-args . ("-i"))))
--8<---------------cut here---------------end--------------->8---
(taken from the manual). But if you add the "-l" arg, bash is a login
shell, and reads .bashrc. Like this (untested):
--8<---------------cut here---------------start------------->8---
(connection-local-set-profile-variables
'remote-bash
'((explicit-shell-file-name . "/bin/bash")
(explicit-bash-args . ("-i" "-l"))))
--8<---------------cut here---------------end--------------->8---
Best regards, Michael.
- How to let tramp be aware the virtualenv?, Zhongwei Yao, 2019/07/16
- Re: How to let tramp be aware the virtualenv?, Michael Albinus, 2019/07/16
- Re: How to let tramp be aware the virtualenv?, Bruno Barbier, 2019/07/16
- Re: How to let tramp be aware the virtualenv?, Zhongwei Yao, 2019/07/16
- Re: How to let tramp be aware the virtualenv?, Michael Albinus, 2019/07/17
- Re: How to let tramp be aware the virtualenv?, Zhongwei Yao, 2019/07/17
- Re: How to let tramp be aware the virtualenv?, Michael Albinus, 2019/07/17
- Re: How to let tramp be aware the virtualenv?, Zhongwei Yao, 2019/07/17
- Re: How to let tramp be aware the virtualenv?,
Michael Albinus <=
- Re: How to let tramp be aware the virtualenv?, Yuri Khan, 2019/07/17
- Re: How to let tramp be aware the virtualenv?, Bruno Barbier, 2019/07/17
- Re: How to let tramp be aware the virtualenv?, Zhongwei Yao, 2019/07/18
- Re: How to let tramp be aware the virtualenv?, Bruno Barbier, 2019/07/18
- Re: How to let tramp be aware the virtualenv?, Zhongwei Yao, 2019/07/18