Open password manager trigger for string "Password:"
I really like the "Password manager trigger" option in iTerm, it's an killer feature. However, I have one problem with it, sometimes it has false positives and that bugs me.
- iTerm2 version: Build 3.1.2
- OS version: 10.12.6 (16G29)
Detailed steps to reproduce the problem:
- sudo some_random_command, example:
MacBook-Air:~ $ sudo killall -HUP mDNSResponder
Password:
- If I create a trigger for this sudo line (Regex:
^Password:\
), I have false positives every time I cat/vim a config file with the string 'Password: ' in it. It's very annoying.
In the last update of iTerm2, I see that somehow, iTerm2 can determine if it's a password field. If it is one, it adds a key icon to it. I would like to use that logic, to determine if it has to open the password manager instead of using the regular expressions. Would that be possible?
Thanks for looking in to this.
iTerm2 rocks!