tmux & shell integration error with custom placement of iterm2_prompt_mark
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.1.5
- OS version: SSH into Debian 9.3 Stretch with integration and utilities installed
Detailed steps to reproduce the problem:
I have a custom prompt. Works fine outside of tmux. Mark appears in desired location, before the "#".
PS1=' \[\e[01;31m\]PROD \u@\h [\w] \[$(iterm2_prompt_mark)\] # \[\e[0m\] '
Open a tmux session: tmux -CC
I get this error after any command run:
-bash: iterm2_prompt_mark: command not found
Remove \[$(iterm2_prompt_mark)\]
from the prompt.
Start an ssh session, mark appears at top of prompt above 'PROD'.
Open a tmux session: tmux -CC
Commands run without error message appearing after. No mark appears however.
What happened:
Custom placement of mark didn't work as expected. No mark appears at all in a tmux session.
What should have happened: