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
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
Alan Stebbens
ae1c1d1ef0
aks:externalize git prompt colors; add help func
12 years ago
Alan Stebbens
f60217ae2c
aks: added Cyan as a color, and used it for untracked files. Updated README
12 years ago
Alan Stebbens
817bdf3584
aks: added gitstatus.sh, and configured it in gitprompt.sh
12 years ago
Alan Stebbens
0704670f8e
aks: added gitstatus.sh, and configured it in gitprompt.sh
12 years ago
Ralf Steuerwald
100e7034c5
Show number of stash entries in bash prompt
12 years ago
ogr3
e70a107295
async_run and disown in subshell when calling to suppress Done output
12 years ago
ogr3
00a79b0777
revert
12 years ago
fredup
051ffa0c2e
Run the async_run and disown in a subshell to suppress Done output
12 years ago
Martin Gondermann
2b47ae9d7c
Disown call terminated other background tasks
...
Fixes #28
12 years ago
Danil Kutkevich
e1aeba7be6
Added callback function to tweak prompt dynamicly
12 years ago
Denny Schäfer
5edb15b73e
Fix indent, Strip traling spaces and convert tabs to spaces
12 years ago
Martin Gondermann
b905a6fb94
Made the check for upstream changes asynchronous. Fixes #23
12 years ago
Denny Schäfer
1409feed8f
Fix indent and Strip traling spaces
12 years ago
Björn Westlin
1d874d50c5
Fix for when spaces exists in repo path
12 years ago