Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can likely achieve something similar using iTerm's Python API.

For example, this script[0] picks a random color preset each time a new session is created, and this one[1] picks a preset based on the hostname.

[0] https://www.iterm2.com/python-api/examples/random_color.html

[1] https://www.iterm2.com/python-api/examples/colorhost.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: