-
Notifications
You must be signed in to change notification settings - Fork 112
Git widget
Alejandro Amaral edited this page Apr 8, 2024
·
8 revisions
Introducing a feature-rich Git status widget that provides:
- The name of the current branch.
- Comprehensive branch status, including changes, additions, deletions, and untracked files.
- A repository status indicator that shows whether the repository is dirty, requires a pull, needs a push, or is fully synced.
This plugin offers all the necessary information at a glance, significantly reducing the risk of forgetting to pull or push changes from the remote repository. This is particularly useful if you're working across multiple computers. The indicators are designed with a logical approach to provide a seamless user experience.
flowchart TD
A[Git Status]
A --> B{Is dirty?}
B -->|YES| D[Sync icon]
B -->|NO| E{Has to push?}
E -->|YES| F[Push icon]
E -->|NO| G{Has to fetch? <5min>}
G -->|YES| J{Has to pull?}
G -->|NO| I[Clean icon]
J -->|YES| H[Pull icon]
J -->|NO| K[Clean icon]
This widget is enabled by default. To change the visibility add this to your .tmux.conf
file
set -g @tokyo-night-tmux_show_git 0 # use 0 to disable
set -g @tokyo-night-tmux_show_git 1 # or use 1 to enable