Commit Graph
7 Commits
Author SHA1 Message Date
Jocelyn Mallon cc82e91f8d Fix bug/typo in time segment
Fix to ensure that we check the state of both 'BULLETTRAIN_TIME_BG' and 'BULLETTRAIN_TIME_FG', instead of checking just the BG twice.
2014-07-18 19:48:38 -07:00
Jocelyn Mallon 7bf3ab74dc Merge commit '6f7561eeb1fcff3c0f097744bb3840229606cbbb'
* commit '6f7561eeb1fcff3c0f097744bb3840229606cbbb':
  Add user prompt character options
2014-07-17 08:59:04 -07:00
Jocelyn Mallon 6f7561eeb1 Add user prompt character options
Add two new user options for changing the final prompt character (default '$')
1) 'BULLETTRAIN_PROMPT_ROOT' - allow the user to choose if they want the final prompt character to change to '#' for root user.
2) 'BULLETTRAIN_PROMPT_CHAR' - allow the user to choose their own final prompt character (instead of '$') as long as it's length is a single character

This also changes the color of the prompt character, red for root, green for normal user, and could be expanded in the future for user selectable color choices.
2014-07-16 10:29:14 -07:00
Jocelyn Mallon 56f75cbda8 Add an option to show extended exit code/status information.
Add a user selectable option 'BULLETTRAIN_EXIT_SHOW' to show the actual exit status code ($RETVAL) along with the graphical indicator.
2014-07-15 16:24:41 -07:00
Jocelyn Mallon fe0b1bea20 Add an option to show extended directory/path information.
Add a user selectable option 'BULLETTRAIN_DIR_EXTENDED' to show extended directory/path information. Currently this is fixed at truncating the path shown at 3 folders deep, but could be modified to support user selectable nesting/truncation.
2014-07-15 16:22:28 -07:00
Jocelyn Mallon 4c13e6b718 Add option to show extended git status information.
Add an option 'BULLETTRAIN_GIT_STATUS' to allow user to show extended git repo status; e.g. added, modified, deleted files instead of just clean/dirty.
2014-07-15 16:16:12 -07:00
Jocelyn Mallon 5296d6c29e Update command substitution notation
Just a quick update to replace all instances of the older `` command substitution, to newer $() notation.
2014-07-15 15:36:02 -07:00