Martin Gondermann
798667a7d5
GIT_PROMPT_FETCH_TIMEOUT in .bashrc isn't be ignored anymore
...
Fixes #121
10 years ago
Rafael Kitover
9f91317c7c
Fix Solaris compatibility
...
Add a workaround for the lack of -mmin in Solarises find, check for
gfind from opencsw and failing that use perl, which Solaris ships with
and is widely available on many other systems.
If neither a working find nor perl is available, print a warning and
turn off remote status checking.
Use eval in async_run to run the command, the old bash in Solaris 5.10
does not recognize the previous syntax.
Use command -v instead of which to check for the existance of rbenv in
the Crunch and Solarized_Extravagant themes. command -v is the POSIX-ly
correct way to check for the existance of a command, and which does not
set the exit code on Solaris.
11 years ago
Robert Meerman
7ca0026b37
_LAST_COMMAND_INDICATOR_ now displays symbolic names of signals
11 years ago
Brent Redd
5762652b25
use double quotes to handle path with spaces
11 years ago
Martin Gondermann
c0510cf2fa
GIT_PROMPT_IGNORE_STASH was broken. Fixes #106
11 years ago
Martin Gondermann
cc97adfdb7
There was _LAST_COMMAND_INDICATOR_ being printed in prompt output on root user
...
Fixes #96
11 years ago
Dennis Xiloj
222a49bcfc
FIX GIT_PROMPT_ONLY_IN_REPO=1 should honor whatever previus prompt was
11 years ago
Martin Gondermann
b745d72722
Optimized themes
11 years ago
Martin Gondermann
7cd27e27df
Removed obsolete Time variables in gitprompt.sh
...
FIxes #86
11 years ago
Martin Gondermann
c04317996d
gitstatus.sh was not theme aware
...
fixes #83
11 years ago
Martin Gondermann
62efaa9e46
Theme always fell back to default theme in bash 3.2.53
...
Fixes #84
11 years ago
Martin Gondermann
296a04b76f
Tweaks for backwards compatibility
11 years ago
Martin Gondermann
fa1189b112
Added possibility to ignore a repository completely by adding "GIT_PROMPT_IGNORE=1" to .bash-git-rc
...
Fixes #80
11 years ago
Martin Gondermann
becb66cf0f
Added function to derive a custom theme from a given theme
11 years ago
Martin Gondermann
882bc8ea46
Added first thought on themes
11 years ago
Martin Gondermann
9005bf4260
Fixed a leftover GIT_PROMPT_SHOW_LAST_COMMAND_INDICATOR
11 years ago
Martin Gondermann
3569c97ba0
Ditched the config variable GIT_PROMPT_SHOW_LAST_COMMAND_INDICATOR in favor of a more general approach with a placeholder.
...
Fixes #76
11 years ago
Martin Gondermann
d10f613100
Moved VirtualEnv template to git-prompt-colors.sh, fixed replacement
11 years ago
Alan Stebbens
f82446c9ac
aks: changed all file envars to end with _FILE; added git_prompt_reset
11 years ago
Martin Gondermann
957eb80d2a
Readded the LAST_COMMAND_INDICATOR-Functionality, which got lost on last merge.
...
Added fix for #67
11 years ago
Alan Stebbens
a3994cd962
aks: aesthetic touchups
11 years ago
Alan Stebbens
a9cd7f330c
aks: optimzations; don't lookup the same files over and over
11 years ago
Martin Gondermann
839de0333f
Readied overwritten function for displaying the last command indicator
11 years ago
Alan Stebbens
3ee76282d7
aks: major rewrite with refactored colors, envar management
11 years ago
Alan Stebbens
9eddd83375
aks: major rewrite with refactored colors, envar management
11 years ago
François LASSERRE
cc646ed6f1
Update gitprompt.sh
...
Remove trailing whitespaces
12 years ago
Martin Gondermann
f66e4e2984
Added a configuration variable to globally disable the remote fetching (also fix for #59 )
12 years ago
Martin Gondermann
1b78dfb6c8
Implemented a per repository possibility to turn of the fetching of the remote status ( fixes #59 )
12 years ago
Martin Gondermann
71001b1215
Implemented the possibility for an indicator which shows the result of the last command.
...
To enable just write
export GIT_PROMPT_SHOW_LAST_COMMAND_INDICATOR=1
just before sourcing the gitprompt.sh
fixes #60
12 years ago
Gustavo Braganca
1552aafd8e
Adds support to show Conda environment on prompt
...
When one uses a Virtualenv environment, its name is shown in the prompt.
The same did not happen with a Conda environment. This fix it.
12 years ago
Erik Pukinskis
8e61b80584
Move last little bit of script into a function so local is available
12 years ago
Rostislav Svoboda
2bbb042530
Fix PROMPT_COMMAND setGitPrompt cumulation when re-sourcing gitprompt.sh
...
Repeated calls of:
source .bash-git-prompt/gitprompt.sh
lead to cumulation:
PROMPT_COMMAND=setGitPrompt;setGitPrompt;...
rendering everything slow
12 years ago
François LASSERRE
eebe10bb27
Update gitprompt.sh
...
Remove trailing whitespaces
12 years ago
Martin Gondermann
5836a50cc1
Made the start and end of the prompt configurable via the .git-prompt-colors.sh
12 years ago
APraxx
08212d8a92
Added different behavior for root prompt in git_prompt_config()
12 years ago
Martin Gondermann
4153ec7ed7
Made gitstatus variables for `symbols_ahead`, `symbols_behind` and `symbols_prehash` configurable via `git-prompt-colors.sh`
...
Fixes #51
The new variables are:
```bash
GIT_STATUS_SYMBOLS_AHEAD
GIT_STATUS_SYMBOLS_BEHIND
GIT_STATUS_SYMBOLS_PREHASH
```
12 years ago
Martin Gondermann
f1508c87c6
Revert "Wrapped prompt colors in \[ and \] to fix history."
...
Fixes #48 for now
This reverts commit 6acf7f8d3e .
12 years ago
Martin Gondermann
e6da398da2
Revert "Fix typo"
...
This reverts commit 12c2305329 .
12 years ago
Hubert
12c2305329
Fix typo
...
Closing '}' should come before '\]', not after
12 years ago
Martin Gondermann
6acf7f8d3e
Wrapped prompt colors in \[ and \] to fix history. Should fix #45
12 years ago
Martin Gondermann
c942a2c3cd
Added config variable to preserve old PS1 outside of git repositories. Fixes #44
12 years ago
Marek Petlicki
0cd2b5a321
Fix for case when __GIT_PROMPT_DIR contains spaces
12 years ago
Marek Petlicki
5ed401274c
Don't color the brackets around virtualenv name
12 years ago
Marek Petlicki
05535f038b
Small improvements
...
Redeclare Blue colour used to display virtualenv name: the color didn't
work in git repositories.
Removed ResetColor local: has no effect as ResetColor is already global
and we don't change it here.
12 years ago
Clemens Schwaighofer
1b5bd22481
Add config variable to toggle leading space in front of Git Prompt
...
Set GIT_PROMPT_LEADING_SPACE to 0 if you do not want a leading space in
front of the prompt. If not set or to any other value a leading space is
printed out.
12 years ago
Martin Gondermann
c2a454da5a
Revert "removed unneeded calls to git_prompt_config"
...
This reverts commit 4cbef92cf5 .
12 years ago
Martin Gondermann
4cbef92cf5
removed unneeded calls to git_prompt_config
12 years ago
Victor Seva
7dc77af94c
fix VIRTUAL_ENV prompt outside a git repository
12 years ago
Martin Gondermann
5c49f42858
Added sourcing of git_prompt_help.sh to gitprompt.sh
12 years ago
Alan Stebbens
4e7fcb290b
aks: don't cause errors if the git-prompt-colors.sh file is missing
12 years ago