Reading List

Configure a Git Shell Prompt Under Nix from mtlynch.io RSS feed.

Configure a Git Shell Prompt Under Nix

I recently read Julia Evans’ latest zine about git, and one of her tips was to configure your terminal shell prompt to show the git status. Julia’s terminal prompt looks like this: ~/work/homepage (main) $ main is Julia’s current git branch. When she’s in the middle of a git operation like bisect or merge, the terminal changes to this: ~/work/homepage (main|MERGING) $ It had never occurred to me to customize my shell prompt, but I immediately recognized the value.