Display feedback of terminal in the π Touchbar
Currently it shows:
- F1 - Current directory π
- F2 - Current git branch π
- F3 - Current git repo status π₯ / π
+
β uncommitted changes in the index;!
β unstaged changes;?
β untracked changes;$
β stashed changes;β£
β unpulled commits;β‘
β unpushed commits.
- F4 - Push to origin branch (git push origin [branch]) βοΈ
- F5 - Display
npm-run
scripts frompackage.json
β‘οΈ
Into iterm2: Go into View -> Customize Tool Bar...
and drag & drop the Fn
module
Clone the repo in your plugins directory:
$ cd ${ZSH_CUSTOM1:-$ZSH/custom}/plugins
$ git clone https://github.com/iam4x/zsh-iterm-touchbar.git
Then add the plugin into your ~/.zshrc
:
plugins=(... zsh-iterm-touchbar)
Add the following snippet ~/.zshrc
after the line antigen use oh-my-zsh:
antigen theme https://github.com/iam4x/zsh-iterm-touchbar
Add the following line to your ~/.zshrc
where you're adding your other zsh plugins:
zgen load iam4x/zsh-iterm-touchbar
ENV variables for git icons:
GIT_UNCOMMITTED="+"
GIT_UNSTAGED="!"
GIT_UNTRACKED="?"
GIT_STASHED="$"
GIT_UNPULLED="β£"
GIT_UNPUSHED="β‘"