--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wed, Jan 11, 2017 at 6:29 AM, Kaushal Shriyan <kaushal...@gmail.com> wrote:
On Monday, 9 January 2017 21:17:47 UTC+5:30, Kaushal Shriyan wrote:Hi,I am using iTerm2 Build 3.0.13 on macos sierra 10.12.2. I usually have more than 15 tabs at a given point in time. Is there a way to display in bold colour to show the server hostname/IP which i am currently working on. something like pop up.... just to be sure that i am working on the right server for example on server A running commands like for example "service httpd status/restart/stop/start.... and so on and so forth so that i do not accidentally run the same command on a different server(for example server B)Please let me know if i am not clear in my explanation.Regards,KaushalHi,I will appreciate if anyone can pitch in for my earlier question to this google group.Thanks in Advance.Regards,Kaushal
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
Hi George,I have the below setup in .bash_profile# This will set your window titleexport PROMPT_COMMAND='echo -ne "\033]0;${PWD##*/}\007"'source ~/.iterm2_shell_integration.`basename $SHELL`test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
and i have set Badge :- \(session.username)@\(session.hostname) in Iterm2 profiles. The issue is that when i login to the remote server, i do not see the remote hostname (for example tomcat01.testchat.com) that appears in the top right of a terminal session instead i see kaushalshriyan@kaushalshriyan.Home which is my laptop desktop name.
Any help will be highly appreciable. Thanks in AdvanceRegards,Kaushal
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+unsubscribe@googlegroups.com.
Do you have this set up in the remote host as well, or only locally? You must load shell integration on every host you log in to, or else set up triggers to emulate the shell integration scripts as described here: https://www.iterm2.com/documentation-shell-integration.html
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+unsubscribe@googlegroups.com.
Given your regex I'd expect the Parameters column to have a value like:\1@\2That'll substitute the username and hostname you captured in the regular expression.A few debugging tips:1. Ensure your trigger is firing by changing it to an Alert trigger2. You can get useful debugging info about automatic profile switching by creating a debug log. Select iTerm2 > Toggle Debug Logging to begin debug logging, then log into a remote host, then select the same menu item to disable debug logging. Next, do:grep -i automatic /tmp/debuglog.txtIt'll tell you what it thinks the current hostname and username are in lines like:1483862997.033284 iTermAutomaticProfileSwitcher.m:93 (-[iTermAutomaticProfileSwitcher setHostname:username:path:]): APS: hostname=iterm2.com, username=gnachman, path=/home/gnachman
On Friday, 20 January 2017 04:41:35 UTC+5:30, George Nachman wrote:Given your regex I'd expect the Parameters column to have a value like:\1@\2That'll substitute the username and hostname you captured in the regular expression.A few debugging tips:1. Ensure your trigger is firing by changing it to an Alert trigger2. You can get useful debugging info about automatic profile switching by creating a debug log. Select iTerm2 > Toggle Debug Logging to begin debug logging, then log into a remote host, then select the same menu item to disable debug logging. Next, do:grep -i automatic /tmp/debuglog.txtIt'll tell you what it thinks the current hostname and username are in lines like:1483862997.033284 iTermAutomaticProfileSwitcher.m:93 (-[iTermAutomaticProfileSwitcher setHostname:username:path:]): APS: hostname=iterm2.com, username=gnachman, path=/home/gnachmanHi George,I did set the below triggers settings.TriggersRegular expresssions Action Parameters Instant^(\w+)@([\w.]+):.+% Report User & Host \1@\2 Checkbox ticked.Please find my pastebin here -> http://sprunge.us/VhFHI did grep -i automatic /tmp/debuglog.txt it did not returned anything.Please suggest. Thanks in AdvanceRegards,Kaushal
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+unsubscribe@googlegroups.com.
This looks right to me. If you're sure the regular expression is correct, please open an issue and include a debug log as described in the issue template. Go to https://iterm2.com/bugs to file an issue.