iTerm 2 profiles

前端 未结 7 1712
庸人自扰
庸人自扰 2021-01-29 23:10

I have recently switched over to iTerm2 and love it. I am wondering though if there is a way to use profiles to correspond to what environment/specific machine you are on.

7条回答
  •  不思量自难忘°
    2021-01-29 23:36

    For Fishell user: 1. Create a fish function:

    functions it2prof > ~/.config/fish/functions/it2prof.fish

    1. Add this content to ~/.config/fish/functions/it2prof.fish file and save:
    function it2prof
      echo -e "\033]50;SetProfile=$argv\a"
    end
    
    1. enjoy your command:

    it2prof whatever_profile_you_define

提交回复
热议问题