How do I make the apple terminal window auto change colour scheme when I ssh to a specific server

前端 未结 10 1801
甜味超标
甜味超标 2020-12-12 12:58

When I ssh into a remote production server I would like the colour scheme of my terminal window to change to something brigh and scary, preferably red, to warn me that I am

10条回答
  •  Happy的楠姐
    2020-12-12 13:47

    A lesser-known feature of Terminal is that you can set the name of a settings profile to a command name and it will select that profile when you create a new terminal via either Shell > New Command… or Shell > New Remote Connection….

    For example, duplicate your default profile, name it “ssh” and set its background color to red. Then use New Command… to run ssh host.example.com.

    It also matches on arguments, so you can have it choose different settings for different remote hosts, for example.

提交回复
热议问题