iTerm2 Touchbar Party is a combination of scripts that make your Mac's Touchbar userful when using iTerm2.
-
Tap the i2tp repository
brew tap snooc/iterm2-touchbar-party
-
Run brew install
brew install iterm2-touchbar-party
-
Add i2tp to your
.bash_profile
if [[ -f "/usr/local/opt/iterm2-touchbar-party/share/iterm2-touchbar-party.sh" ]]; then source "/usr/local/opt/iterm2-touchbar-party/share/iterm2-touchbar-party.sh" export PROMPT_COMMAND="__i2tp" fi
- Clone this repository
git clone [email protected]:snooc/iterm2-touchbar-party.git
- Source
iterm2-touchbar-party.sh
and add i2tp to yourPROMPT_COMMAND
in~/.bash_profile
source path/to/iterm2-touchbar-party.sh export PROMPT_COMMAND="__i2tp"
i2tp offers a few basic configuration options to configure the status bar display. These options may be set in your
using the export
shell command in your .bash_profile
(before or after the source
and PROMPT_COMMAND
, as i2tp
runs just before your bash prompt displays.)
export I2TP_STATUS_GIT=false
Name | Description | Values | Default Value |
---|---|---|---|
I2TP_STATUS |
Enable/disable status display | true /false |
true |
I2TP_STATUS_PWD |
Enable/disable displaying current working directory | true /false |
true |
I2TP_STATUS_GIT |
Enable/disable displaying current git branch | true /false |
true |
I2TP_STATUS_KUBERNETES |
Enable/disable displaying current Kubernetes context | true /false |
true |