From 24e12413661f38be39ffa1c2f7c7c46310b4f3a5 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 15 Aug 2016 11:29:47 +1200 Subject: Don't use git: prompt prefix if PROMPT_VCS unset All of my personal stuff is in Git, so this is only really applicable at work --- README.markdown | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index b8d9f89d..b6f259f2 100644 --- a/README.markdown +++ b/README.markdown @@ -133,21 +133,22 @@ defaults for interactive behavior. A terminal session with my prompt looks something like this: - tom@conan:~/.dotfiles(git:master+!)$ git status + tom@conan:~/.dotfiles(master+!)$ git status M README.markdown M bash/bashrc.d/prompt.bash A init - tom@conan:~/.dotfiles(git:master+!)$ foobar + tom@conan:~/.dotfiles(master+!)$ foobar foobar: command not found - tom@conan:~/.dotfiles(git:master+!)<127>$ sleep 5 & + tom@conan:~/.dotfiles(master+!)<127>$ sleep 5 & [1] 28937 - tom@conan:~/.dotfiles(git:master+!){1}$ + tom@conan:~/.dotfiles(master+!){1}$ It expands based on context to include these elements in this order: * Whether in a Git repository if applicable, and punctuation to show whether there are local modifications at a glance; Subversion support can also be - enabled (I need it at work) + enabled (I need it at work), in which case a `git:` or `svn:` prefix is + added appropriately * The number of running background jobs, if non-zero * The exit status of the last command, if non-zero -- cgit v1.2.3