oGre
46aaea2c33
Postpone export of GIT_UPSTREAM until we know that it should be exported
9 years ago
oGre
230717084b
Remove unnecessary unset of the local variable
9 years ago
oGre
737ebec4c0
Move the local variable to the else branch so that you don't do an unnecessary substitution
9 years ago
oGre
47df726794
Wait with evaluation of the parts that contain the branch names until PS1 is rendered.
9 years ago
Stephan Knauss
85de63d504
extend gp_truncate_pwd to accept parameter with max pwd length
...
If length is passed as a parameter, the given length will be used to
truncate the pwd. If nothing is specified it defaults to 1/3 of
the terminal width.
9 years ago
Martin Gondermann
6645a82003
Disable globbing on replacing prompt symbols ( fixes #295 )
9 years ago
oGre
7d0c2b3061
Switched if statement
9 years ago
oGre
21ea21f406
Changed if statement. Added docs.
9 years ago
oGre
12ef3c0363
whitespace
9 years ago
oGre
a12e3ccf44
Simplified if expression
9 years ago
oGre
367e27b6f8
Configurable display of numbers for changed files
9 years ago
oGre
9014f4ae1d
Use keyword command inestead of backslash and remove -f flag on rm
10 years ago
oGre
fd51b4b617
Make sure aliases for cp and rm are lower priority than the original command
10 years ago
nexayq
1d32369dab
Add git_prompt_toggle to disable/enable gitprompt
10 years ago
hgmoll
38f7dbc0bb
Fix index lock issue
10 years ago
oGre
46ab557cbc
Extract color definition loading as a function
10 years ago
oGre
9a6f9cbb3c
Revert both 'fixes'
10 years ago
oGre
31ceb350fd
Fixed quoting to just around the first parameter
10 years ago
Jose Tiago Macara Coutinho
fd34847175
Solves issue #252 : error message in prompt with old bash version
10 years ago
Johnny Halfmoon
61cd6ae2ad
(1) Deleted items were incorrectly counted as staged. (2) A ResetColor string after the last_command_indicator makes the command line colors be a bit more predictable.
10 years ago
Martin Gondermann
b3f4d82842
Export GIT_BRANCH as environment variable for 3rd party usage, fixes #244
10 years ago
Thomas Rebele
0ac3d048be
added option to specify path of template file
10 years ago
Martin Gondermann
410fd059a7
GIT_PROMPT_SHOW_UNTRACKED_FILES=no was not working correctly
...
* Fixed the bug, than GIT_SHOW_UNTRACKED_FILES=no was not respected
* Renamed GIT_SHOW_UNTRACKED_FILES to GIT_PROMPT_SHOW_UNTRACKED_FILES as
this is more consistent to the other environment variables
* GIT_PROMPT_SHOW_UNTRACKED_FILES can be now also set on a per
repository basis in .bash-git-rc
* Updated README
Fixes #215 and 216
10 years ago
oGre
4ab6a6f2fe
Removed unused variables
10 years ago
Jernej Tonejc
69188e5d0d
fix escapes for terminal title
10 years ago
Joni Lahtinen
c6e9984135
Use portable shebang
10 years ago
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
41aa8fe825
Unset the new variable. Documentation added in README.md Removed unexpected token warning.
10 years ago
oGre
baa54d3673
Added config variable analogue to GIT_PROMPT_VIRTUALENV
10 years ago
oGre
54543440f5
Add upstream tracked branch to gitstatus.sh and possible to show in prompt
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