Skip to content

Instantly share code, notes, and snippets.

@jordanamorais
Last active February 23, 2021 01:33
Show Gist options
  • Save jordanamorais/9153395c88421fd2ca1f997708142d56 to your computer and use it in GitHub Desktop.
Save jordanamorais/9153395c88421fd2ca1f997708142d56 to your computer and use it in GitHub Desktop.
How to configure custom ZSH Apple Touch Bar

1 - Baixar o repositório do plugin:

git clone https://github.com/floor114/zsh-apple-touchbar $ZSH_CUSTOM/plugins/zsh-apple-touchbar

2 - Entrar na pasta do plugin:

cd $ZSH_CUSTOM/plugins/zsh-apple-touchbar

3 - Editar o config.yml do plugin com as opções desejadas (exemplo abaixo para copiar, de @rafoli):

https://gist.github.com/rafoli/1ec379667aec764742fd287b1b34592a

4 - Executar o comando abaixo para ler o config.yml atualizado:

ruby generate.rb

5 - Por fim, abrir o arquivo .zshrc (que fica no seu diretório root (~)) e acrescentar o plugin como visto abaixo:

plugins=(
    git zsh-apple-touchbar
)

6 - Reestartar o terminal, ou executar:

zsh

7 - Depois entrar em iTerm2 > View > Customize Touch Bar e arrasta o FN Keys pra Touch Bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment