{"version":"1.0","type":"rich","title":"Add Git Branch Name to Terminal Prompt (Mac)","description":"This example shows a terminal prompt configured to display the current Git branch name inline, alongside the standard user, host, and working directory information. The `~/.bash_profile` file contains a `parse_git_branch()` function that runs `git branch` and filters the output with `sed` to extract only the active branch marker. The prompt is then customized using the `PS1` environment variable, which embeds the function’s result in green ANSI color codes. This approach relies on shell scripting and standard Unix text-processing tools rather than a visualization library.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-71d982855bd8a967487ec45707bb7d39?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}