Commit Graph

438 Commits (2999159188ecb225fc6bb450a54347b8f59a01d7)

Author SHA1 Message Date
Bill Moritz b967674e6c Add support for AWS Tools Profile.
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
2015-12-05 11:52:58 -05:00
Dongri Jin 9c9c20da2a Fix 2015-11-27 01:41:19 +09:00
Dongri Jin 1eb7b4b4c2 Fix 2015-11-27 01:37:53 +09:00
Dongri Jin 53d2452276 Fix 2015-11-27 01:19:14 +09:00
Dongri Jin 5f246cfcac Fix 2015-11-27 01:16:20 +09:00
Dongri Jin 5396bf69a0 Initial commit 2015-11-27 01:15:30 +09: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
Eduardo Bellido Bellido 86b9af62c3 Fix grep pattern 2015-09-10 20:07:04 +02:00
Matias Ibañez 1449036285 Update simple theme
PS1 definition via PROMPT variable produces an invalid prompt
2015-09-07 01:43:40 -03:00
Eduardo Bellido Bellido d0565e8954 Add a flag (SCM_GIT_IGNORE_UNTRACKED) to ignore untracked files in git prompt 2015-09-06 20:02:20 +02:00
Reto Haeberli ff87ad7482 New binaryanomaly theme 2015-09-06 12:22:48 +02:00
Eduardo Bellido Bellido 0943aec34b Improvements in git prompt
- Git prompt now indicates when remote tracked branch is "gone"
- New env var (SCM_GIT_DETACHED) that indicates when HEAD is detached
- New env vars available for themes (SCM_THEME_BRANCH_TRACK_PREFIX,
  SCM_THEME_BRANCH_GONE_PREFIX, SCM_GIT_DETACHED_CHAR)
- Refactor of git_prompt_vars function from base theme
2015-09-06 00:59:27 +02:00
Eduardo Bellido Bellido 78cb41a1cf Add the option to show git branch remote tracking info in git prompt 2015-09-05 15:04:25 +02:00
Eduardo Bellido Bellido 86fd5cd5c4 Improve ref detection in git prompt 2015-09-05 02:12:38 +02:00
Nils Winkler ad1b059d0d Merge pull request #557 from bezhermoso/vim-indicator
Indicator if running bash in vim
2015-09-01 08:48:07 +02: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
Bez Hermoso e6dc31b35d Indicator if running bash in vim 2015-08-31 10:22:28 -07:00
Nils Winkler 2cac4380b9 Merge pull request #545 from goromlagche/add-time-to-bobby
adding datetime and battery percentage to theme 'bobby'
2015-08-27 15:56:14 +02:00
goromlagche f7877a1ef8 prefixing THEME to BATTERY_CHECK and CLOCK_CHECK 2015-08-27 19:00:18 +05:30
宋信强 5d6a68b201 Delete the execss function, modify the note and the shown style 2015-08-24 09:10:09 +08:00
宋信强 bdf1ede7ef a new theme:axin,based on 'sexy' 2015-08-21 17:23:12 +08:00
goromlagche e525ea1fbe clock_check added, datetime added instaed of clock, also battery_percentage added 2015-08-12 22:59:18 +05:30
Hector Rivas Gandara 2360790ee3 Fix infinite loop when $PS4 calls external command
When using `set -x` with a `$PS4` variable which calls a external
command (e.g. `PS4='+ $(true)'`) the color functions end in a infite
loop.

The solution is `shift` the arguments unconditionally in the color
funtions.

This fixes #546
2015-08-12 12:00:14 +01:00
goromlagche 39b5d0b042 adding time to bobby 2015-08-12 00:20:50 +05:30
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
Mina Markham bc7bcf0883 adding cupcake theme 2015-08-03 02:53:35 -04:00
Nils Winkler 1aadb24f38 Merge pull request #529 from ranaamritparth/theme/rana
New Theme
2015-08-02 18:36:41 +02:00
Heikki Ritola 436a25ed84 Dulcie theme upgrades
- Colorize prompt
- Support for multiline prompt
- Set tab title (OSC 0) and keep the current directory (OSC 7)
2015-08-02 12:18:35 +03:00
Aakash Shah 0e456639d7 Update base.theme.bash
Fix support for recognizing git when in submodules and the regression when in subdirectories of a git repository.
2015-07-23 13:58:55 -07:00
Rana Amrit Parth 8b2b2cae60 New Theme 2015-07-21 23:29:22 +05:30
Rana Amrit Parth 38f9cb6bc5 New theme rana 2015-07-21 18:58:17 +05:30
Dan Wendorf c711b1b575 Show git prompt when in a detached HEAD state
The current check of `git symbolic-ref HEAD` does not detect git
repositories in the 'detached HEAD' state. This is the state a
repository is in if HEAD is not pointing to a valid branch or tag (e.g.
you are in a recently-initiated submodule).
2015-07-16 18:06:48 -07:00
Ian Huston 1b9dab7bc6 Modified version of the bobby theme which shows Python version, Virtualenv directory and Conda environment name. 2015-06-06 10:51:35 +01:00
Ian Huston 80c7874ebc Add Python version and Conda environment prompt functions. 2015-06-06 10:44:56 +01: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
jitakirin b8649312e4 Style fix 2015-05-22 08:51:13 +01:00
jitakirin 473b3f2075 Abuse uptime to check if sudo requires password
The ``sudo -n true`` trick doesn't work on OS X.
2015-05-22 08:43:34 +01:00
jitakirin 9693b39da6 Port sudo indicator to powerline theme
This ports sudo indicator feature to powerline theme, originally added
to powerline-multiline theme in PR #452.
2015-05-21 21:12:18 +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
Miguel Morales a915926851 Emperor theme; features time on the prompt with different colors for each quater of the hour 2015-04-07 15:52:30 -05:00
Ignasi Fosch f3b8b8928d RVM prompt for powerline-multiline 2015-03-05 19:55:43 +01:00
Eduardo Bellido Bellido 87ba4761b5 Merge pull request #417 from edubxb/powerline-multiline
Powerline-multiline improvements
2015-03-05 19:52:41 +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
Heikki Ritola 2740706c6f Change order to emphasize current directory 2015-02-27 14:06:15 +02:00
Heikki Ritola c4293d9c4e Add dulcie theme as a basic PS1 prompt with git info 2015-02-27 13:41:47 +02:00
Travis Swicegood b250b8763b Fix prompt character and remove clock (h/t @edubxb) 2015-02-05 14:09:15 +00:00
Travis Swicegood fbe091004e Switch this up a little bit 2015-02-05 14:09:15 +00:00
Travis Swicegood 1c1670256e Add in a multi-line powerline theme 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido 5bb81fbba6 Added Powerline-naked theme 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido b50138ba33 Changed default value to true for SCM_GIT_SHOW_DETAILS 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido 6321cf5387 Adapted Powerline-plain theme to new base theme 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido 99e153e956 Adapted Powerline theme to new base theme 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido a6c184c376 Moved some features from Powerline theme to base theme 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido 6a85fbd55c Added an option to show (defaults true) the details in git repos 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido 80b7881c16 Show ref type in git prompt in Powerline-plain theme 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido 4bd8420e93 Show ref type in git prompt in Powerline theme 2015-02-05 14:09:15 +00:00
Eduardo Bellido Bellido dd4c10f0c4 Now git_prompt_vars indicates when HEAD not points to a branch 2015-02-05 14:09:14 +00:00
Eduardo Bellido Bellido 259acc6e70 Include latest changes from powerline into powerline-plain 2015-02-05 14:09:14 +00:00
Eduardo Bellido Bellido fd8f5f9830 Added more Git repository info to Powerline Plain theme 2015-02-05 14:09:14 +00:00
Eduardo Bellido Bellido f0216225a7 Added more Git repository info to Powerline theme 2015-02-05 14:09:14 +00:00
Eduardo Bellido Bellido b07bf8df73 More info about Git repository added
Now, staged, unstaged and untracked files count can be shown in themes
2015-02-05 14:09:14 +00:00
Omer Katz 9244d77a11 Revert "Added pyenv-virtualenv plugin" 2015-02-05 14:09:14 +00:00
Kovica 4f58ce0e90 On new repositories ./hg/branch and .hg/dirstate do not exist. In this case use "hg summary" 2015-02-05 14:09:14 +00:00
Kovica ca50c499c3 Don't need that echo 2015-02-05 14:09:14 +00:00
Kovica 85575f8373 Added comments 2015-02-05 14:09:14 +00:00
Kovica b31b0ea606 We don't need return values 2015-02-05 14:09:14 +00:00
kovica e8ac683947 Update base.theme.bash
Faster Mercurial status
2015-02-05 14:09:14 +00:00
Hannes 19950f65d1 Update pure.theme.bash
Fixed an issue, where ps_root_mark was not defined
2015-02-05 14:09:14 +00:00
Ben Brunton 21ff8b9297 updated brunton theme to use battery_charge 2015-02-05 14:09:14 +00:00
Ben Brunton 1a74e54b3f prevent battery_charge call from erroring in themes when battery plugin not enabled 2015-02-05 14:09:14 +00:00
Ben Brunton 3451a67876 included safe battery charge to prevent error when battery plugin not enabled 2015-02-05 14:09:14 +00:00
Ben Brunton 47d5577e95 Delete brunton.theme.bash~ 2015-02-05 14:09:14 +00:00
Ben Brunton 68e5e517f0 inclued brunton theme 2015-02-05 14:09:14 +00:00
Eric Baer 12619ffa5b Don't return rbenv or rvm if the don't exist 2015-02-05 14:09:13 +00:00
Conrado Buhrer 09b7b601a1 added: slick theme 2015-02-05 14:09:13 +00:00
Carlos E. Reynosa-Nunez c0fc2e1228 Added a flag within the base theme to turn version control checks completely off or on. 2015-02-05 14:09:13 +00:00
Luke Culbertson acddf2132e Added better support for pyenv, virtualenvwrapper, and autoenv
working in concert with one another.
Features added:
- Added a pyenv-virtualenv plugin which creates virtual environments
  using the current pyenv python version
- `cd` into a directory that has a virtual environment already created
  and autoenv will automatically activate that environment
- Current virtual environment is displayed in command prompt
2015-02-05 14:09:13 +00:00
Eduardo Bellido Bellido 33ec7f0159 Fix regression checking git repo status 2015-02-05 14:09:12 +00:00
EHJ-52n 401711a398 Change name of ip function to remove masking of ip command in bash 2015-02-05 14:09:12 +00:00
Phillip Aldridge ece3aff59b Don't repeat the prompt if it hasn't changed 2015-02-05 14:09:12 +00:00
Eduardo Bellido Bellido 24f5799280 Fix regression in git prompt 2015-02-05 14:09:12 +00:00
Eduardo Bellido Bellido 0556e81954 Added support to git old versions 2015-02-05 14:09:12 +00:00
Phillip Aldridge 8efa92c464 Add new theme: Iterate 2015-02-05 14:09:12 +00:00
Travis Swicegood e14d41f58d Update powerline to show conda environments 2015-02-05 14:09:11 +00:00
hequn e724c26785 Add git config option bash-it.hide-status to decide whether check git status. 2015-02-05 14:09:11 +00:00
Travis Swicegood 4fdaa95abd Add ability for themes to specify that you're viewing a tag along with Powerline implementation 2015-02-05 14:09:11 +00:00
Steven Koeberich b912f3292e added support for git tags 2015-02-05 14:09:11 +00:00
Christophe Aguettaz b68b9fa09d Git-related fixes for themes.
Improved prompt display speed when git is not installed by
preventing bash from walking the path before each prompt.

Removed pesky stash-related git error message when in bare repos.
2015-02-05 14:09:11 +00:00
Christophe Aguettaz fa86463a98 Improved prompt speed when hg is not installed.
Prevented bash from walking the path looking for hg when it is not
installed during each prompt refresh.
2015-02-05 14:09:11 +00:00
Matt Griffin 42bd17842e [sexy theme] remove extra reset which finds its way into stdout
Stray sgr0 was emitted to stdout, corrupting application output.
2015-02-05 14:09:11 +00:00
Fatih Kadir Akın 69a7f44f7e fix wordings 2015-02-05 14:09:11 +00:00
Fatih Kadir Akın 007162caa5 color fix for light themes 2015-02-05 14:09:10 +00:00
aram price 01f0740a29 Update chruby prompt to show "(system)" when using system ruby 2015-02-05 14:09:10 +00:00
Marshall Yount fa30ab1aac fix bug where "no active gemsets" displayed to STDERR 2015-02-05 14:09:06 +00:00
Enrique Bautista 3be2ce1ef4 Check that battery plugin is enabled before calling battery functions in demula theme 2015-02-05 14:09:06 +00:00
Enrique Bautista fec45befb7 Fixed display of last failed command in demula theme 2015-02-05 14:09:06 +00:00
Roderik van der Veer a202bf9e5a Added my own theme, based on gentoo's prompt 2015-02-05 14:09:06 +00:00
Luan Santos c62fa659d1 Added custom theme 2015-02-05 14:09:06 +00: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
Eduardo Bellido Bellido a17af1ce9a Merge pull request #393 from edubxb/theme-powerline-naked
Added Powerline-naked theme
2015-01-13 00:41:44 +01: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
Eduardo Bellido Bellido 3c627f436c Added Powerline-naked theme 2015-01-06 23:57:11 +01:00
Eduardo Bellido Bellido 418e6fae14 Changed default value to true for SCM_GIT_SHOW_DETAILS 2015-01-06 12:57:57 +01:00
Eduardo Bellido Bellido 48f5763fc6 Adapted Powerline-plain theme to new base theme 2014-12-31 19:57:41 +01:00
Eduardo Bellido Bellido 01aaf69a96 Adapted Powerline theme to new base theme 2014-12-31 19:45:10 +01:00
Eduardo Bellido Bellido 4b97037af4 Moved some features from Powerline theme to base theme 2014-12-31 19:44:10 +01:00
Eduardo Bellido Bellido 2830020c5d Added an option to show (defaults true) the details in git repos 2014-12-29 21:54:46 +01:00
Eduardo Bellido Bellido 41b0677726 Show ref type in git prompt in Powerline-plain theme 2014-12-29 02:38:09 +01:00
Eduardo Bellido Bellido b0ce36b8ed Show ref type in git prompt in Powerline theme 2014-12-29 02:38:00 +01:00
Eduardo Bellido Bellido 54921d9294 Now git_prompt_vars indicates when HEAD not points to a branch 2014-12-29 02:26:09 +01:00
Eduardo Bellido Bellido 2e7a14ee3b Include latest changes from powerline into powerline-plain 2014-12-24 01:35:54 +01:00
Eduardo Bellido Bellido 78e0dedb0b Added more Git repository info to Powerline Plain theme 2014-12-24 00:37:31 +01:00
Eduardo Bellido Bellido 3e17b17846 Added more Git repository info to Powerline theme 2014-12-24 00:37:31 +01:00
Eduardo Bellido Bellido 0227691ca9 More info about Git repository added
Now, staged, unstaged and untracked files count can be shown in themes
2014-12-24 00:36:01 +01:00
Kovica 35adbaf7b3 On new repositories ./hg/branch and .hg/dirstate do not exist. In this case use "hg summary" 2014-12-12 20:32:04 +01:00
Kovica 324e1edfce Don't need that echo 2014-12-12 15:51:12 +01:00
Kovica 6f126b80e4 Added comments 2014-12-12 15:19:28 +01:00
Kovica 8914d452d8 We don't need return values 2014-12-12 15:08:07 +01:00
kovica 9a134acd06 Update base.theme.bash
Faster Mercurial status
2014-12-12 11:54:00 +01:00
Hannes 3acc5acc4f Update pure.theme.bash
Fixed an issue, where ps_root_mark was not defined
2014-12-08 13:39:38 +01:00
Ben Brunton 1c83611faa updated brunton theme to use battery_charge 2014-11-13 09:17:04 +00:00
Ben Brunton d7912f8f1b prevent battery_charge call from erroring in themes when battery plugin not enabled 2014-11-12 17:27:38 +00:00
Ben Brunton e7f1bf8645 deleted ~ file 2014-11-12 10:03:06 +00:00
Ben Brunton 18b77e2fec included safe battery charge to prevent error when battery plugin not enabled 2014-11-12 10:00:45 +00:00
Ben Brunton ba891f9d12 Delete brunton.theme.bash~ 2014-11-11 21:13:14 +00:00
Ben Brunton 60163a5350 inclued brunton theme 2014-11-11 21:11:23 +00:00
Travis Swicegood 43eb4950b1 Merge pull request #345 from carlos-reynosa/scm-status-check-flag
Version Control Environment & Status Check Flag
2014-11-03 16:00:48 -08:00
Eric Baer b517629303 Don't return rbenv or rvm if the don't exist 2014-10-28 18:08:01 -07:00
Conrado Buhrer 6b6644b94a added: slick theme 2014-10-28 11:39:39 -02:00
Omer Katz 3d36ad7522 Merge pull request #227 from ebautistabar/demula.lastcmdfail
Fixes in demula theme
2014-10-28 12:34:45 +02:00
Omer Katz 93f48596ad Merge pull request #269 from f/master
new duru theme with clean and simple interface
2014-10-28 12:30:54 +02:00
Omer Katz 9c6bffa21c Merge pull request #178 from luan/luan-theme
Added my custom theme
2014-10-28 12:21:47 +02:00
Omer Katz 695e43636b Merge pull request #181 from roderik/theme/roderik
Added my own theme, based on gentoo's prompt
2014-10-28 12:15:41 +02:00
Carlos E. Reynosa-Nunez 34e9525f1a Added a flag within the base theme to turn version control checks completely off or on. 2014-10-04 17:13:23 -07:00
Eduardo Bellido Bellido c6bb8507ad Fix regression checking git repo status 2014-08-26 00:23:27 +02:00
Travis Swicegood ccbb79946a Merge pull request #318 from edubxb/old-git-support
Added support to git old versions
2014-08-25 13:21:27 -07:00
Travis Swicegood 08fd9ed25e Merge pull request #331 from iterateNZ/iterate_theme
Update iterate theme
2014-08-25 10:24:03 -07:00
EHJ-52n 495697cd00 Change name of ip function to remove masking of ip command in bash 2014-08-20 12:28:17 +02:00
Phillip Aldridge cb08b74ffa Don't repeat the prompt if it hasn't changed 2014-08-20 09:54:52 +12:00
Eduardo Bellido Bellido f9448f5ebb Fix regression in git prompt 2014-08-13 22:47:34 +02:00
James Hart 7c1ecce354 Move emoji to unused line above!
- This was causing some issues when using the "up" arrow while
   replaying history
2014-08-08 12:50:13 -07:00
Eduardo Bellido Bellido ee698fbae3 Added support to git old versions 2014-08-01 00:49:57 +02:00
James Hart dd3ba69402 Add a wanelo bashit theme, with time! and emojis to indicate good status, bad status! 2014-07-18 17:29:54 -07:00
Phillip Aldridge 449cc8b5db Add new theme: Iterate 2014-05-09 11:46:35 +12:00
Travis Swicegood 057755a91b Merge pull request #280 from hawkbee/hawkbee
Add git config option bash-it.hide-status to decide whether check git st...
2014-04-08 15:25:37 -05:00
Travis Swicegood aeb08aea3f Update powerline to show conda environments 2014-04-05 09:14:55 -05:00