{"id":42550143,"url":"https://github.com/j4ckofalltrades/git-branch-win-title","last_synced_at":"2026-01-28T19:06:53.734Z","repository":{"id":71873665,"uuid":"315010600","full_name":"j4ckofalltrades/git-branch-win-title","owner":"j4ckofalltrades","description":"Add the current git branch to the terminal window title","archived":false,"fork":false,"pushed_at":"2024-03-05T16:02:10.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T06:27:25.311Z","etag":null,"topics":["bash","git","shell","tmux","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j4ckofalltrades.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-11-22T10:26:21.000Z","updated_at":"2023-10-16T07:54:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"d38b835f-ce0e-4d59-bf95-2f9cd1014cf2","html_url":"https://github.com/j4ckofalltrades/git-branch-win-title","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/j4ckofalltrades/git-branch-win-title","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4ckofalltrades%2Fgit-branch-win-title","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4ckofalltrades%2Fgit-branch-win-title/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4ckofalltrades%2Fgit-branch-win-title/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4ckofalltrades%2Fgit-branch-win-title/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j4ckofalltrades","download_url":"https://codeload.github.com/j4ckofalltrades/git-branch-win-title/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4ckofalltrades%2Fgit-branch-win-title/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28849440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","git","shell","tmux","zsh"],"created_at":"2026-01-28T19:06:53.230Z","updated_at":"2026-01-28T19:06:53.729Z","avatar_url":"https://github.com/j4ckofalltrades.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![git-branch-win-title](https://res.cloudinary.com/j4ckofalltrades/image/upload/v1697278939/foss/gh-social-icons/git-branch-win-title_bkf47c.png)\n\nA small shell function that adds the current git branch (if present) to the terminal emulator window title.\n\n## Requirements\n\n- [Git](https://git-scm.com) v2.2 or higher \n- Any [supported terminal emulator](#terminal-emulator-support)\n- Any [supported shell interpreter](#shell-interpreter-support)\n\n## Quick Start\n\nConfiguration may vary depending on the user's OS, terminal emulator, and shell\ninterpreter. But in most cases, the following command should be enough:\n\n```sh\n$ source branch-win-title.sh\n```\n\nYou may also want to add this line to your shell configuration file e.g.\n`.profile`, `.bashrc`, `.zshrc`, etc.\n\n## Shell interpreter support\n\n- [bash](https://www.gnu.org/software/bash)\n- [zsh](https://github.com/zsh-users/zsh)\n\n## Terminal Emulator support\n\nTested on the following terminal emulators:\n\n- [Alacritty](https://github.com/alacritty/alacritty)\n- [iTerm2](https://github.com/gnachman/iTerm2)\n- [Gnome Terminal](https://github.com/GNOME/gnome-terminal)\n- [Guake](https://github.com/Guake/guake)\n\n## Additional configuration\n\n### Powerline\n\nThe `branch-win-title.sh` script must be loaded first before configuring\npowerline otherwise it will override the powerline-generated shell prompt.\n\n### Guake\n\nEnable the following settings under `Main Window`:\n\n- Show tab bar\n- Use VTE titles for tab names\n\n### iTerm2\n\nEnable the following settings under `Preferences \u003e Profiles`:\n\n- Terminal may set tab/window title\n\n### Tmux\n\nAdd the following entries to `.tmux.conf`:\n\n```bash\nset-option -g set-titles on\nset-option -g set-titles-string \"#T\"\nset-option -g automatic-rename on\n```\n\n## Demo\n\n![](branch-win-title.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj4ckofalltrades%2Fgit-branch-win-title","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj4ckofalltrades%2Fgit-branch-win-title","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj4ckofalltrades%2Fgit-branch-win-title/lists"}