Commit Graph

38 Commits (bca7051a62dfe788230d995f41a30b936509f8d0)

Author SHA1 Message Date
Florian Molitorisz f8d5ffe84c
fix hostname prompt
https://github.com/Bash-it/bash-it/issues/1145
2018-04-11 17:37:29 +02:00
Will Price 396bedf11e Improve documentation on prompt options for powerline themes 2018-02-16 19:51:22 +00:00
Nils Winkler d0df07435e Added configurable padding value to Powerline-Multiline theme
Required on macOS High Sierra with the default Terminal app, otherwise,
the right segment would extend to the next line.
2018-01-08 08:56:49 +01:00
Eduardo Bellido Bellido d779fd6fe4 New customization options
Added two new variables:

POWERLINE_LEFT_END
POWERLINE_RIGHT_END

used to change the end character of the the left and right parts.
2017-12-19 22:31:59 +01:00
Eduardo Bellido Bellido 898bb10579 Fix powerline themes README.md 2016-11-09 21:04:18 +01:00
Eduardo Bellido Bellido 7229838c5b Powerline multiline theme refactor
- Split functions and options in two files
- Import common functions from powerline theme
- Updated README.md
2016-10-30 01:16:37 +02:00
MunifTanjim a2a6fa2812 refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
Nils Winkler 66397ef577 Revert "Changes to sudo check for powerline themes" 2016-09-26 09:01:59 +02:00
Vedhapriya Raman 28e9e04d4f Changes for issue# 744 2016-09-23 20:50:55 -05:00
Yuhao Wu af96da5d11 Fix bug: themes break global $PROMPT_COMMAND variable
Safely append functions to $PROMPT_COMMAND instead of setting it.
2016-07-07 17:13:00 +09:00
Nils Winkler e5d50f0d97 Simplified logic for both Linux and OS X
Avoiding the if statements, using exit code of `grep -q` instead.

Reverted the change that adds a space after the AC char. Opting for a
default value, allowing to override from one's profile.
2016-04-14 08:16:32 +02:00
Nils Winkler a9c5670c2c Added AC indicator support on OS X
Not sure about the logic for returning 1/0 from the function, though -
will have to clarify.
2016-04-12 09:56:03 +02:00
Konstantin Gredeskoul 6de871294e Adding support for rbenv in addition to rvm
- following existing patterns, clearing out RBENV prefix and suffix
- using existing function to read the prompt
2016-03-14 03:25:32 -07:00
Eduardo Bellido Bellido f05c56a440 Set fallback values to POWERLINE_LEFT_PROMPT and POWERLINE_RIGHT_PROMPT variables 2016-02-03 23:03:07 +01:00
Nils Winkler 5617cc2e31 Fixed spelling and wording
Some minor changes in spelling, wording and formatting.
2016-02-01 08:32:19 +01:00
Eduardo Bellido Bellido 30c6fd1f59 Refactor __powerline_last_status_prompt function 2016-01-30 12:19:34 +01:00
Eduardo Bellido Bellido f6436a878e Fix some regressions and variables names 2016-01-30 12:18:07 +01:00
Eduardo Bellido Bellido ead5047fb9 Reduce unset calls 2016-01-30 11:33:00 +01:00
Eduardo Bellido Bellido 8bee21e428 Update powerline-multiline README.md 2016-01-27 01:27:11 +01:00
Eduardo Bellido Bellido 6d4923aca8 Now, segments can be placed at left or at right
- Code refactor
- Print code converted into functions
- Remove unused variables
- Improved conistence in naming, variable and functions
2016-01-27 01:07:14 +01:00
Eduardo Bellido Bellido dfbd065bc1 Fix indentation 2016-01-25 21:49:50 +01:00
Eduardo Bellido Bellido 64e6f354dc Add Powerline Multiline theme README.md 2016-01-25 20:02:55 +01:00
Eduardo Bellido Bellido 1009b23724 Minor fixes 2016-01-25 20:02:55 +01:00
Eduardo Bellido Bellido 51f5614de5 Add support to change the segment order of the left and right prompt 2016-01-25 20:02:55 +01:00
Eduardo Bellido Bellido eb92e2f845 Add support to change the order of the prompt info in the Powerline Multiline theme 2016-01-25 20:02:55 +01:00
Eduardo Bellido Bellido 56c6e3ecd3 Now, right prompt can be totally disabled in powerline multiline theme
- New env var (THEME_PROMPT_USERINFO_MODE) to choose "user info" mode:

    Possible values:

        default: same behaviour as before
        sudo: only show a "hint" when sudo credentials are cached

    any other values disables this segment.
2015-10-28 00:43:33 +00:00
Bez Hermoso 77a891d8c6 Check VIMRUNTIME instead 2015-08-31 16:36:07 -07:00
Bez Hermoso 29861812dd Vim indicator for powerline-multiline theme 2015-08-31 12:07:39 -07:00
Nils Winkler 658cfb7d6e Fixed battery conversion
For battery percentages of 08 and 09 percent, the `-le` would fail with
an error ("value too great for base"), since the numbers with leading
zeros are treated as octal numbers when using double brackets.

The solution is to force base 10 for the numbers. More details here:
http://stackoverflow.com/a/24777667/1228454
2015-08-04 11:31:01 +02:00
jitakirin 595ae1ab07 Make powerline-multiline use the same check for sudo
Reduces number of subprocesses to check for passwordless sudo by 1.
2015-05-22 08:51:32 +01:00
Nils Winkler 2160c70c15 Added sudo indicator
If the user is currently in a valid sudo session (sudo currently does
not require a password), then the username part of the right  prompt will use
a different color (orange). This gives an indication to the user that
sudo commands will not require a password at the moment. One example for
this might be that the user is reminded to run a `sudo -k` to terminate
the current sudo session before stepping away from the screen.
2015-04-20 08:30:16 +02:00
Ignasi Fosch f3b8b8928d RVM prompt for powerline-multiline 2015-03-05 19:55:43 +01:00
Eduardo Bellido Bellido eba628065b Powerline-multiline improvements
- Changed some default CHARS for better font compatibility
- Make some CHARS user customizable
- Minor fixes
2015-03-05 19:51:16 +01:00
Eduardo Bellido Bellido 71c5209ac6 Updated Powerline-multiline theme
- Prompt drawing fixes and improvements
- Support to show ac adapter status
2015-02-04 23:10:20 +01:00
Eduardo Bellido Bellido 7060850441 Improved Powerline-multiline theme
- Added a clock
- Added the battery status
- Visual improvements
2015-02-01 19:09:13 +01:00
Travis Swicegood 8a12d12725 Fix prompt character and remove clock (h/t @edubxb) 2015-01-18 15:09:02 -08:00
Travis Swicegood 6e310a24fd Switch this up a little bit 2015-01-09 18:15:41 -08:00
Travis Swicegood f23cc41f00 Add in a multi-line powerline theme 2015-01-09 11:40:05 -08:00