configuração do esquema de cores para o iTerm

0

Como você configura o esquema de cores do iTerm no Mac? Para o esquema de cores, quero dizer usar cores diferentes para exibir o nome da pasta, nome do arquivo, nome da máquina, etc.

obrigado antecipadamente, Lin

    
por Lin Ma 09.05.2015 / 01:13

1 resposta

1

Abra o iTerm2.

Selecione o menu iTerm > Preferências…

Vá para a guia "Perfis".

Escolha um perfil (ou crie um novo) e selecione a guia Cores (veja a captura de tela).

Vocêpodedefinirascorescomodesejaparaesseperfil.

Sevocêquiserusaressascoresemoutroperfil,cliquenomenususpensoCarregarpredefinições...eselecioneExportar…nofinaldomenu.Vocêpodesalvarseuesquemadecorescomoumarquivo.iterm2colors.

Umarquivo.iterm2colorséapenasumarquivoXML,entãovocêpodeabri-losemumeditordetextoedarumaolhadaneles.

Porexemplo,aquiestáoXMLdoesquemaTomorrowNightEighties(pormeiodo repo Theme do Tomorrow ):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Ansi 0 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.0</real>
        <key>Green Component</key>
        <real>0.0</real>
        <key>Red Component</key>
        <real>0.0</real>
    </dict>
    <key>Ansi 1 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.47843137254901957</real>
        <key>Green Component</key>
        <real>0.46666666666666667</real>
        <key>Red Component</key>
        <real>0.94901960784313721</real>
    </dict>
    <key>Ansi 10 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.59999999999999998</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.59999999999999998</real>
    </dict>
    <key>Ansi 11 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.40000000000000002</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>1</real>
    </dict>
    <key>Ansi 12 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.59999999999999998</real>
        <key>Red Component</key>
        <real>0.40000000000000002</real>
    </dict>
    <key>Ansi 13 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.59999999999999998</real>
        <key>Red Component</key>
        <real>0.80000000000000004</real>
    </dict>
    <key>Ansi 14 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.40000000000000002</real>
    </dict>
    <key>Ansi 15 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.99999129772186279</real>
        <key>Green Component</key>
        <real>0.99997437000274658</real>
        <key>Red Component</key>
        <real>1</real>
    </dict>
    <key>Ansi 2 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.59999999999999998</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.59999999999999998</real>
    </dict>
    <key>Ansi 3 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.40000000000000002</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>1</real>
    </dict>
    <key>Ansi 4 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.59999999999999998</real>
        <key>Red Component</key>
        <real>0.40000000000000002</real>
    </dict>
    <key>Ansi 5 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.59999999999999998</real>
        <key>Red Component</key>
        <real>0.80000000000000004</real>
    </dict>
    <key>Ansi 6 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.40000000000000002</real>
    </dict>
    <key>Ansi 7 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.99999129772186279</real>
        <key>Green Component</key>
        <real>0.99997437000274658</real>
        <key>Red Component</key>
        <real>1</real>
    </dict>
    <key>Ansi 8 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.0</real>
        <key>Green Component</key>
        <real>0.0</real>
        <key>Red Component</key>
        <real>0.0</real>
    </dict>
    <key>Ansi 9 Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.47843137250000001</real>
        <key>Green Component</key>
        <real>0.46666666670000001</real>
        <key>Red Component</key>
        <real>0.94901960780000005</real>
    </dict>
    <key>Background Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.1764705882352941</real>
        <key>Green Component</key>
        <real>0.1764705882352941</real>
        <key>Red Component</key>
        <real>0.1764705882352941</real>
    </dict>
    <key>Bold Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.80000000000000004</real>
    </dict>
    <key>Cursor Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.80000000000000004</real>
    </dict>
    <key>Cursor Text Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.1764705882</real>
        <key>Green Component</key>
        <real>0.1764705882</real>
        <key>Red Component</key>
        <real>0.1764705882</real>
    </dict>
    <key>Foreground Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.80000000000000004</real>
    </dict>
    <key>Selected Text Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.80000000000000004</real>
        <key>Green Component</key>
        <real>0.80000000000000004</real>
        <key>Red Component</key>
        <real>0.80000000000000004</real>
    </dict>
    <key>Selection Color</key>
    <dict>
        <key>Blue Component</key>
        <real>0.31764705882352939</real>
        <key>Green Component</key>
        <real>0.31764705882352939</real>
        <key>Red Component</key>
        <real>0.31764705882352939</real>
    </dict>
</dict>
</plist>

Você pode baixar muitos esquemas de cores para o iTerm2 no site iTerm 2 Color Schemes . Isso pode poupar algum tempo. :)

    
por 12.06.2015 / 11:30