Clemens Schwaighofer
d104f75b22
shell for gitprompt.sh needs to be bash
...
changed #!/bin/sh to #!/bin/bash as eg Debian and Ubuntu default
shell is /bin/dash. This script will not work with it, and so the
default shell has to be /bin/bash.
10 years ago
oGre
09c98facb6
Added environment variable GIT_PROMPT_STATUS_COMMAND that can point out a custom gitstatus.sh script if needed.
10 years ago
oGre
fbeaa6effd
Moved gp_truncate_pwd function to gitprompt.sh
10 years ago
oGre
1ba48fd06b
Added helper function gp_set_window_title that can be used to set XTerm window title to the given argument. Used in TruncatedPwd_WindowTitle theme
10 years ago
oGre
149efc1331
Virtualenv information duplicated code moved to helper function
10 years ago
oGre
26bd9fb354
Honor VIRTUAL_ENV_DISABLE_PROMPT in updatePrompt as well
10 years ago
oGre
ba1276e9c8
Honor VIRTUAL_ENV_DISABLE_PROMPT, if it is set to non-empty string
10 years ago
oGre
f1940dfe8b
Quoted paths to handle spaces in them
10 years ago
oGre
f319f3acc1
Added break in loop after we find the current theme
10 years ago
oGre
2e0180f93a
Removed backtick from comment
10 years ago
oGre
09fcaf22fc
Optimized theme reading to not use external commands, but only bash
10 years ago
oGre
249c24e279
Two functions missed.
10 years ago
oGre
d83795adcb
Revert unset prompt_callback and extra call to git_prompt_reset
10 years ago
oGre
df40c38f26
re-indented replaceSymbols function containing tab stops
10 years ago
oGre
ffe831d659
Missed two functions
10 years ago
oGre
554f14bf23
Re-indented functions. Added unset of prompt_callback when calling reset prompt. Call reset prompt when loading new theme. Added quicker check for function type.
10 years ago
oGre
31f690f65c
Check if prompt_callback is a function must occur after theme has loaded if theme is to override prompt_callback
10 years ago
oGre
8a04c7c260
Fixed typo in echoed text
10 years ago
Martin Gondermann
798667a7d5
GIT_PROMPT_FETCH_TIMEOUT in .bashrc isn't be ignored anymore
...
Fixes #121
10 years ago
corbosman
e72fd9a41b
fix match for theme
11 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