jarretth / zsh-iterm-touchbar

Display feedback of terminal in the 🍏 Touchbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zsh iTerm Touchbar

Display feedback of terminal in the 🍏 Touchbar

preview1

preview2

Currently it shows:

  • F1 - Current directory πŸ‘‰
  • F2 - Current git branch with status
    • ✚ β€” uncommitted changes in the index;
    • ✹ β€” unstaged changes;
  • F3 - Nearest tag and if HEAD is:
    • 🏷 β€” Tagged
    • πŸ“¨ β€” Not tagged

Requirements

Into iterm2: Go into View -> Customize Tool Bar... and drag & drop the Fn module

Installing plugin

For oh-my-zsh users

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)

For antigen users

Add the following snippet ~/.zshrc after the line antigen use oh-my-zsh:

antigen theme https://github.com/iam4x/zsh-iterm-touchbar

For Zgen users

Add the following line to your ~/.zshrc where you're adding your other zsh plugins:

zgen load iam4x/zsh-iterm-touchbar

Customize

ENV variables for git icons:

GIT_UNCOMMITTED="+"
GIT_UNSTAGED="!"
GIT_UNTRACKED="?"
GIT_STASHED="$"
GIT_UNPULLED="⇣"
GIT_UNPUSHED="⇑"

Read more / Credits

About

Display feedback of terminal in the 🍏 Touchbar


Languages

Language:Shell 100.0%