Commit Graph

352 Commits (1490b67d286032b62f76483d032e74d43d95f33c)

Author SHA1 Message Date
Avasz 966a2bb383 Added credits 2016-12-09 10:40:42 +05:45
Avasz d7d4cb9807 kitsune theme 2016-12-09 10:35:09 +05:45
Peter Benjamin 65e2514c63 Add theme: purity 2016-12-07 09:58:24 -08:00
Ivan Font 771082cdc2 Add prefix/suffix for clock prompt and clock char 2016-12-05 09:04:29 -08:00
MunifTanjim f132df6eff refactor brainy theme, add todo segment & ssh indicator and other minor updates 2016-11-24 21:09:15 +06:00
Eduardo Bellido Bellido 898bb10579 Fix powerline themes README.md 2016-11-09 21:04:18 +01:00
MunifTanjim 62554b84c8 add brainy theme 2016-10-31 05:57:39 +06:00
Nils Winkler 8a2b6bdc54 Merge pull request #815 from edubxb/powerline-themes-refactor
Refactor of all powerline themes
2016-10-30 16:22:15 +01:00
Eduardo Bellido Bellido 7427e7efc3 Powerline plain theme refactor
- Split functions and options in two files
- Import common functions from powerline theme
- Add README.md
2016-10-30 01:17:57 +02:00
Eduardo Bellido Bellido 47e6d57a82 Powerline naked theme refactor
- Split functions and options in two files
- Import common functions from powerline theme
- Add README.md
2016-10-30 01:16:47 +02: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
Eduardo Bellido Bellido 34bd7e49c3 Powerline theme refactor
- Split functions and options in two files
- Add README.md
2016-10-30 01:16:05 +02:00
MunifTanjim 8c9777df43 revert pull 797 2016-10-21 21:03:51 +06:00
MunifTanjim a2a6fa2812 refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06:00
MunifTanjim 8dde691671 standardize clock functions 2016-10-18 20:31:07 +06:00
MunifTanjim 08fba38c43 fix backward compatibility 2016-10-17 16:10:44 +06:00
MunifTanjim 7d901b11b6 seperate clock_char function 2016-10-17 04:11:09 +06:00
MunifTanjim 01dab32683 modify clock prompt for better customizability 2016-10-17 03:37:25 +06:00
MunifTanjim 4468c1b126 improve scm_prompt_info 2016-10-08 12:44:34 +06:00
Nils Winkler 66397ef577 Revert "Changes to sudo check for powerline themes" 2016-09-26 09:01:59 +02:00
Nils Winkler 5abbba98bd Merge pull request #792 from VP468/vp468
Changes to sudo check for powerline themes - fixes #744
2016-09-26 14:55:19 +08:00
Vedhapriya Raman 28e9e04d4f Changes for issue# 744 2016-09-23 20:50:55 -05:00
Damian Kaczmarek b992698380 Fix bold font to make simple theme really simple 2016-09-23 14:22:09 -05:00
Sam Gunaratne 1a4c03b08c Fixes issue with PROMPT_COMMAND ending in semi-colon 2016-08-03 10:04:24 +01:00
Nils Winkler 22d5dab238 Merge pull request #761 from wanelo/master
Wanelo Pairing workstations theme
2016-08-01 09:03:11 +02: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
Beorn Facchini d1f5648b6b Bash-it theme inspired by oh-my-zsh tonotdo. 2016-07-03 11:55:43 +10:00
Cristian Lupascu 734c937232 added the nwinkler_random_colors theme 2016-06-08 14:23:47 +03:00
Robert Rauch 669d068b12 Support HG_ROOT containing whitespaces 2016-06-02 10:36:37 +02:00
Gabriel Ricci 6228fa5e72 Adding support for rvm-promt to powerline-plain theme 2016-06-01 05:49:38 +00:00
Nils Winkler ec30515a31 Merge pull request #719 from telyn/master
Rough port of oh-my-zsh's gallifrey theme
2016-05-19 18:01:11 +02:00
mairanteodoro bcc536f81a New color scheme for 'mairan' theme. 2016-05-18 16:50:31 -04:00
mairanteodoro 18f9a8ebc4 Add new theme 'mairan' (based on 'zork') 2016-05-18 12:57:05 -04:00
Telyn ZF Roat 47f9689868 Add rough port of oh-my-zsh's gallifrey theme 2016-05-12 11:55:23 +01:00
AlfredoBejarano cff6025338 Removes pipes around ruby version 2016-04-20 00:58:08 -05:00
AlfredoBejarano d2acf16646 Changes color for git status prompt 2016-04-20 00:32:28 -05:00
AlfredoBejarano 07236c0571 Adds spacing to git status icon
and changes the dirty and ahead icons
2016-04-20 00:29:02 -05:00
AlfredoBejarano d8a22e6a0e Adds cooperkid theme by AlfredoBejarano 2016-04-20 00:07:18 -05: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
Nils Winkler fd8ff61baa Merge pull request #697 from clayreimann/patch-1
Display the prompt when changing directories
2016-04-10 12:55:35 +02:00
Brian Malehorn 2a3fde2b14 colors.theme.bash: pre-compute colors
bash-it takes rather a while to startup, around 0.5 seconds on my
laptop. After a bit of timing it appears the majority of the time is
spent in themes/colors.theme.bash. The reason for that is the fancy
abstraction layers that use $(). For example, consider this code:

    red="$(color reset red)"

It will go through 9 forkexecs to evaluate:

    red="$(color reset red)"
        "$(__color_parse make_ansi reset red)"
        "$(__make_ansi reset red)"
        "\[\e[$(__reset red)m\]"
        "\[\e[0;$(__red)m\]"
        "\[\e[0;$(__color red)m\]"
        "\[\e[0;$(__color_normal_fg $(__color_red))m\]"
        "\[\e[0;$(__color_normal_fg 1)m\]"
        "\[\e[0;31m\]"

With all the variables in colors.theme.bash, this adds up to hundreds of
forks:

    $ strace -f bash ./colors.theme.bash 2>&1 | grep clone | wc -l
    649

The solution is to replace the function with its result:

    -red="$(color reset red)"
    +red='\[\e[0;31m\]'

This is safe, since colors.theme.bash never calls external functions or
takes any input. So, its result can be safely hard-coded.

This improves startup time dramatically. Try adding "time" to your .bashrc:

    # Load Bash It
    time source $BASH_IT/bash_it.sh

before:

    real    0m0.462s
    user    0m0.100s
    sys     0m0.399s

after:

    real    0m0.150s
    user    0m0.091s
    sys     0m0.064s
2016-04-09 20:52:47 -07:00
Clay Reimann 93d70a6150 Display the prompt when changing directories
This change allows for the capture of the expanded prompt (rather than the raw `PS1`) so that
it is easier to maintain context when changing directories.

Fix is based on the comments from [this stackoverflow](http://stackoverflow.com/a/24006864)
2016-04-08 12:27:25 -05:00
Nils Winkler 5ec816342f Merge pull request #680 from kigster/scm_user
Adding support for git user & git pair in git prompt (off by default)
2016-03-18 08:12:17 +01:00
Konstantin Gredeskoul 36d994dec5 Explained `git pair` and a more reliable fallback
- Added more information to the README about the practice of using `git
  pair`, and provided instructions on installing the support.

- Write a more reliable fallback that uses `user.name` to extract user
  initials, when `user.initials` aren't set.
2016-03-16 20:15:20 -07:00
Konstantin Gredeskoul b70018e531 Adding support for git user & git pair 2016-03-14 03:42:38 -07: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
Robert Rauch ba5e7c9268 Speed up $PROMPT_COMMAND by using rvm-prompt
Running `rvm tools identifier` seems to be really slow. Using [`rvm-prompt`](https://rvm.io/workflow/prompt) greatly speeds up the evaluation of `$PROMPT_COMMAND`.
2016-02-06 21:19:30 +01:00
Eduardo Bellido Bellido dfe811719f Merge pull request #656 from edubxb/default-values
Set fallback values to POWERLINE_LEFT_PROMPT and POWERLINE_RIGHT_PROMPT variables
2016-02-03 23:05:22 +01: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