Commit Graph

68 Commits

Author SHA1 Message Date
Manuel Hoffmann 268ce32d69 I took a look at this answer http://unix.stackexchange.com/a/90876
and thus added the %{%}-delimiters around the `prompt_line_sep` whitespace.
Works for me and fixes #80
2015-10-04 17:24:47 +02:00
Caio Gondim ccadea1dd4 Fix bug on getting version number on go segment
It is common for users to have grep aliased to `grep --colour='always`.
This fix sets grep on getting the go version to `never`.
2015-09-30 00:22:05 +02:00
Caio Gondim e79f9ff10c Changes go segment prefix 2015-09-30 00:21:44 +02:00
Greg Fitzgerald dc152b5471 Add detection for glide.yaml 2015-09-29 23:46:56 +02:00
Greg Fitzgerald 4a07c82824 Fix a couple issues with the go prompt 2015-09-29 23:46:56 +02:00
Greg Fitzgerald a6c0510cc2 Add Go version to prompt, only displayed when in a go source tree 2015-09-29 23:46:56 +02:00
Caio Gondim fd544cbb7a Adds space between bullettrain and $ if BULLETTRAIN_PROMPT_SEPARATE_LINE == false 2015-09-28 13:48:58 +02:00
Nicholas 7b677b4a4e Fix unmatched quote 2015-09-27 13:16:25 -04:00
Caio Gondim ce55c1432d Fix BULLETTRAIN_PROMPT_SEPARATE_LINE name and puts a whitespace before $ 2015-09-25 11:52:31 +02:00
Michael Cornell 6306de05bb line sep responds to changes after source 2015-09-24 11:43:29 -04:00
Caio Gondim 86ce85b56b Renames BULLETTRAIN_PROMPT_SEP_LINE to BULLETTRAIN_PROMPT_SEPARATE_LINE 2015-09-23 22:11:05 +02:00
Caio Gondim 2c33e04196 Merge pull request #62 from gregf/sep_line
Add a new option to keep the prompt in two lines or one
2015-09-23 22:06:28 +02:00
Caio Gondim 3578fcd009 Merge pull request #61 from gregf/cmd
Use command -v instead of which
2015-09-22 14:16:15 +02:00
Caio Gondim 85805e52b8 Merge pull request #60 from gregf/chruby
Add chruby support
2015-09-22 14:15:59 +02:00
Greg Fitzgerald a9f61184d0 Add missing semicolons in if statements 2015-09-20 18:03:15 -04:00
Greg Fitzgerald 05f78e0384 Add a new option to keep the prompt in two lines or one 2015-09-19 20:58:23 -04:00
Greg Fitzgerald 3fbbce3bf8 Fixup documentation for chruby 2015-09-19 15:07:42 -04:00
Greg Fitzgerald f057715a30 Use command -v instead of which.
https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then
2015-09-19 15:03:44 -04:00
Greg Fitzgerald 65581ad4ea Add chruby support 2015-09-19 14:53:02 -04:00
Viktor (Icon) VAD 5a364bad20 Unified naming for ruby section. Theme and Readme updated. 2015-09-17 11:56:17 +01:00
Viktor (Icon) VAD 73b0e05368 Adding rbenv support for RVM branch, though now without rbenv-gemset support. 2015-09-15 17:34:10 +01:00
Andreas Galauner 5941592060 Add support for three display modes of the path in the prompt: short, medium and long 2015-08-27 20:06:06 +02:00
Mario Zigliotto f5d28adfd9 Add seconds back to 24 hour time 2015-08-27 15:13:08 +02:00
Mario Zigliotto c93bb14ffb Add support for displaying time in 12-hour format
- Introduces a flag, `$BULLETTRAIN_TIME_12HR`, indicating if 12-hour format should be used
- Default to 24 hour time
- Document new option in README
2015-08-27 15:13:08 +02:00
Sébastien Bordenave 33735f55cd Added quotes in time format 2015-08-15 00:56:13 +02:00
Caio Gondim aee29238b1 Fix NVM detection
Was getting syntax error on OS X with zsh
2015-05-22 20:11:34 +02:00
gvillalta99 0d947ddbdd Testing npm without leting which and type output escape 2015-05-13 11:25:08 -03:00
Hannes Frank b9f4fe7e83 Fixed highlighting tab completion without zsh-syntax-highlighting
When pressing tab on an incomplete command like 'l' or 'c' the commandline
turns and stays green so even the output is colored green or the
highlight of the suggestions swaps colors when tabbing through.
This happens only if the zsh-syntax-highlighting plugin is not enabled.
I fixed this by adding the missing %f in prompt_char().
2015-02-05 10:04:50 +01:00
Dan Kaplun 3d2bd96f09 Optionally shows context with dir 2015-01-08 17:15:50 -06:00
Dan Kaplun 46eb96338e Fixes root coloring to not affect other symbols within the status 2015-01-07 16:55:53 -06:00
Dan Kaplun 43dd0ae366 Sets status fg to white by default 2015-01-07 03:25:56 -06:00
Caio Gondim 55123388b6 Hides NVM segment by default 2015-01-06 07:28:45 +01:00
Caio Gondim bcf6bc842c Renames BULLETTRAIN_STATUS_EXIT_SHOW to BULLETTRAIN_STATUS_EXIT_SHOW 2015-01-06 07:24:56 +01:00
Caio Gondim 2d250c2099 Improves context segment code 2015-01-06 07:20:26 +01:00
Caio Gondim a63c147ecf Puts status segment after time 2015-01-05 23:50:55 +01:00
Caio Gondim b2ca161cbb Merge branch 'secrettriangle-fix-context'
* secrettriangle-fix-context:
  Fixes prompt_context
2015-01-05 22:39:44 +01:00
Dan Kaplun 7afb9de1c0 Fixes prompt_context 2015-01-05 05:38:23 -06:00
Dan Kaplun 165863074d Removes standout logic (no longer used) 2015-01-05 05:26:23 -06:00
Dan Kaplun a12871f0ec Fixes prompt_status 2015-01-05 05:24:35 -06:00
Caio Gondim 3dfcc0f896 Fix git conf variables
Closes #20
2014-12-26 05:02:33 +01:00
Caio Gondim cb8f7065ef Configuration vars will respect user values if setted
Fix #19
2014-12-01 17:57:58 +01:00
Caio Gondim 275f319803 Fix on default value of BULLETTRAIN_NVM_SHOW
Will have to do the same with all the variables.

Fix #18
2014-11-30 23:06:36 +01:00
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
Caio Gondim c09b8827a5 Removes trailling whitespaces 2014-07-18 12:03:22 +02:00
Caio Gondim 8355f03e4a Updates README 2014-07-18 11:58:04 +02:00
Jocelyn Mallon 7bf3ab74dc Merge commit '6f7561eeb1fcff3c0f097744bb3840229606cbbb'
* commit '6f7561eeb1fcff3c0f097744bb3840229606cbbb':
  Add user prompt character options
2014-07-17 08:59:04 -07:00
Caio Gondim 2dc8a04c51 Updates README with new options 2014-07-17 17:21:55 +02:00
Caio Gondim 0ef6ef9016 Fix indentation 2014-07-17 17:12:35 +02: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