Commit Graph

19 Commits

Author SHA1 Message Date
John D Pell
ffe15ebfe0 themes: use _save-and-reload-history()
First pass to use _Bash It_'s automatic history management.
2021-09-11 21:25:14 -07:00
Noah Gorny
dff892e0a3 themes: Adapt themes to new scm_prompt api 2021-05-16 19:17:02 +03:00
MunifTanjim
a2a6fa2812 refactor themes to support standardized clock functions 2016-10-18 20:58:07 +06: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
Travis Swicegood
b7e429b1f8 optimize this a bit 2012-05-01 17:25:47 -05:00
Travis Swicegood
e51c7fb97c Remove commented out stuff 2012-05-01 17:23:23 -05:00
Eitan Adler
3fc60b5358 Fix bogus bash binary location 2012-04-17 00:24:58 -04:00
Hendrik Mans
1be4467429 Update (most) themes to use new ${ruby_version_prompt} variable. 2012-01-26 16:07:06 +01:00
Travis Swicegood
41ca567f95 add color to the prefix 2011-07-23 21:48:07 -05:00
Travis Swicegood
11995c1c1d make sure its obvious which is ruby and which is python 2011-07-23 21:42:48 -05:00
Travis Swicegood
1251c20a58 add rvm to prompt 2011-07-23 21:42:22 -05:00
Travis Swicegood
aa56e2ad01 ditch custom virtualenv_prompt in favor of one in base 2011-07-23 21:42:02 -05:00
Jeff Carouth
6e8733ea98 Adding multiple SCM support to doubletime theme.
The doubletime theme improves the SCM status prompt for git.
However, it accomplishes this at the expense of other SCM
systems. This delegates prompt to the default bash-it prompt
function when the SCM is not git.
2011-06-25 10:05:25 -05:00
JFSIII
1b7c9419bf Convert themes and plugins to use the update colors. Themes are no longer burdened with escaping the unprintable characters 2011-06-17 19:45:21 -04:00
Travis Swicegood
9623fd442f Allow clock to be formatted 2011-05-30 10:12:51 -05:00
Travis Swicegood
ba9b5d22df Add support for showing what virtualenv is currently active
This works with virtualenvwrapper to detect when a virtualenv is
activated and adds "(<name>)" before the path that's being displayed.
2011-03-02 23:42:01 -06:00
Travis Swicegood
1638a1a435 Allow setting a custom host color
This change allows someone to change their host color by adding the
following to their `.bash_profile`:

    # change to red
    THEME_PROMPT_HOST_COLOR="red"
    # change to green
    THEME_PROMPT_HOST_COLOR="green"

Any variable inside the `colors.theme.bash` can be used and it will be
evaluated at the last minute.
2011-02-28 14:18:46 -06:00
Travis Swicegood
0c2f3093a0 Add THEME_PROMPT_HOST for use in prompts
This switches the doubletime theme over to using a variable for
determining what to display in the prompt.  The original version's use
of a hard-coded `@local` means you would have that suffix displayed even
on remote machines.
2011-02-28 13:46:22 -06:00
Karl Swedberg
8ac6e4414e new "doubletime" theme with more granular git status markers and two-line prompt 2011-02-27 17:54:35 -05:00