aboutsummaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-15 11:29:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-15 11:31:47 +1200
commit24e12413661f38be39ffa1c2f7c7c46310b4f3a5 (patch)
treec388129629ca8df957278dde83b7f020b79cc627 /README.markdown
parentRemove square brackets around prompt (diff)
downloaddotfiles-24e12413661f38be39ffa1c2f7c7c46310b4f3a5.tar.gz
dotfiles-24e12413661f38be39ffa1c2f7c7c46310b4f3a5.zip
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
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown11
1 files changed, 6 insertions, 5 deletions
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