diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-26 15:09:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-26 15:09:22 +1200 |
commit | e4ad3ed3e2fa5b0c0e59cabf8662781d1b47a5b3 (patch) | |
tree | ee11f01d2714b593da97738eb0e2ce7726182162 /README.markdown | |
parent | Use single quotes for printf (diff) | |
download | dotfiles-e4ad3ed3e2fa5b0c0e59cabf8662781d1b47a5b3.tar.gz dotfiles-e4ad3ed3e2fa5b0c0e59cabf8662781d1b47a5b3.zip |
Rearrange prompt to put last return status last
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index c3e32d67..1a3dc016 100644 --- a/README.markdown +++ b/README.markdown @@ -83,14 +83,14 @@ My prompt generally looks like this, colored bright green: It expands based on context to include these elements in this order: -* The exit status of the last command, if it was non-zero * Whether in a Git, Mercurial, or Subversion repository, and punctuation to show whether there are local modifications at a glance * The number of running background jobs +* The exit status of the last command, if non-zero With all of the above (a rare situation), it might look something like this: - [user@hostname:~/gitrepo]<127>(git:master?){1}$ + [user@hostname:~/gitrepo](git:master?){1}<127>$ This is all managed within the `prompt` function. Some of the Git stuff was adapted from @necolas' [superb dotfiles][19]. |