diff options
author | MountainMan <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-02 21:49:37 -0400 |
---|---|---|
committer | MountainMan <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-02 21:49:37 -0400 |
commit | 4b006b55c4c3610812353bc36e18f1d2eb59f56d (patch) | |
tree | d85b803fe7497fa5b4555909ca9c7318bb08c04c /home/.nanorc | |
parent | Fix formatting in `dotfiles/home/.bashrc` (diff) | |
download | dotfiles.old-4b006b55c4c3610812353bc36e18f1d2eb59f56d.tar.gz dotfiles.old-4b006b55c4c3610812353bc36e18f1d2eb59f56d.tar.bz2 dotfiles.old-4b006b55c4c3610812353bc36e18f1d2eb59f56d.zip |
Add git branch to `$PS1` in `dotfiles/home/.bashrc`
It's nice to see which branch you're in at-a-glance. This change makes it
so that, if you are in a git repo, the `$PS1` displays which branch is
active. If not, it is reduced to a single space. I would like to find a
way to conditionally add a space between (BRANCH) and DIR, omitting it if
not in a git repo. This would make it look nicer outside of git repos.
Diffstat (limited to 'home/.nanorc')
0 files changed, 0 insertions, 0 deletions