From e4ad3ed3e2fa5b0c0e59cabf8662781d1b47a5b3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 26 Aug 2013 15:09:22 +1200 Subject: Rearrange prompt to put last return status last --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.markdown') 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]. -- cgit v1.2.3