cuspymd / tramp-term.el

Provides a quick way to create an ansi-term containing an ssh session with remote directory tracking already configured.
43 stars 12 forks source link

Update PROMPT_COMMAND without overwrite old value #7

Closed zhongweiy closed 6 years ago

zhongweiy commented 6 years ago

Hi, tramp-term--initialize will set PROMPT_COMMAND environment variable to set-eterm-dir currently, which will overwrite its old value. What about this way: PROMPT_COMMAND=\"${PROMPT_COMMAND:+$PROMPT_COMMAND ;} set-eterm-dir\"

randymorris commented 6 years ago

Sorry for taking so long to comment on this, somehow I missed the notification. I don't really see any harm in this. Can you open a pull request and I'll merge it in? Thanks!

zhongweiy commented 6 years ago

@randymorris done, please take a look.