aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
Commit message (Collapse)AuthorAgeFilesLines
* Many stylistic fixes/optimisationsTom Ryder2016-08-211-33/+14
| | | | In particular, limit the verbose >=2.05 test to just one file: .bashrc
* Force type for Git ahead/behind countsTom Ryder2016-08-211-4/+6
|
* Use clearer quoting for status flagsTom Ryder2016-08-211-6/+6
|
* Target terminfo first, then termcapTom Ryder2016-08-211-9/+9
|
* Break up long printf linesTom Ryder2016-08-211-2/+4
|
* Slightly quicker git/svn detectionTom Ryder2016-08-211-15/+6
|
* Add some upstream checking to Git promptTom Ryder2016-08-211-3/+19
| | | | Also add some comments to be a bit less cryptic
* Use terser prompt status flag checksTom Ryder2016-08-211-8/+4
|
* Resolve an issue with incorrect prompt infoTom Ryder2016-08-211-0/+3
| | | | | | | | | | | | | From `man 1 git-config`: > diff.autoRefreshIndex > When using git diff to compare with work tree files, do not > consider stat-only change as changed. Instead, silently run git > update-index --refresh to update the cached stat information for > paths whose contents in the work tree match the contents in the > index. This option defaults to true. Note that this affects only > git diff Porcelain, and not lower level diff commands such as git > diff-files.
* Don't do Git prompt work if not in working treeTom Ryder2016-08-181-0/+7
|
* Don't use git: prompt prefix if PROMPT_VCS unsetTom Ryder2016-08-151-2/+3
| | | | | All of my personal stuff is in Git, so this is only really applicable at work
* Remove square brackets around promptTom Ryder2016-08-151-1/+1
| | | | Just noise
* Quote a PS1 character to appease shellcheckTom Ryder2016-08-141-1/+1
|
* Two extra commentsTom Ryder2016-08-141-0/+2
|
* Rearrange prompt variable assignments a bitTom Ryder2016-08-141-10/+12
|
* Use --quiet flag for prompt git-rev-parse(1) callTom Ryder2016-08-141-1/+1
|
* Use porcelain commands for Git promptTom Ryder2016-08-131-27/+9
| | | | | | | | | | | | Checking the output of `git status -z` works, but to be correctly handled requires using a null delimiter for read. Because I want to port this to OpenBSD pdksh (which doesn't have the -d option for read), this seems to be a workable alternative. It also enables me to remove the process substitution (another thing pdksh doesn't support), and the array of flags. I haven't yet tested this for speed.
* Remove Mercurial support from Bash promptTom Ryder2016-08-101-37/+0
| | | | | | Since Vim and Fanboy's list both moved to Git, I have no reason to use it anymore. Also added a note explaining why I've left the SVN stuff in there (I don't like SVN, but I do need to use it for work)
* Move bash completion setup into separate dirTom Ryder2016-07-301-3/+0
|
* Quote expansions within parameter expansionsTom Ryder2016-07-151-1/+1
| | | | | | I made the incorrect assumption that it was safe not to do this; expansions that include glob characters, for example, can cause problems.
* Terser `read -rd ''` idiomTom Ryder2016-07-151-2/+2
|
* Remove unneeded linebreak backslashesTom Ryder2016-06-211-8/+8
| | | | | | | | | | | Handy command: $ find bin sh bash -type f -exec grep \ -e '|| \\$' \ -e '&& \\$' \ -e '^\s*||' \ -e '^\s*&&' \ {} +
* Switch from prompt image to plain textTom Ryder2016-06-091-1/+1
| | | | More compatible, want to display this in Cgit as well
* Move PROMPT_RETURN declaration to top of funcTom Ryder2016-05-041-1/+4
|
* Add means to change prompt colorTom Ryder2016-04-231-3/+8
|
* Remove blank lines at end of filesTom Ryder2016-03-281-1/+0
|
* Remove unneeded read junk varTom Ryder2016-03-151-1/+1
|
* Protect PS1 variable expansionsTom Ryder2016-03-151-2/+2
|
* Only show git VCS stuff by defaultTom Ryder2016-03-141-1/+6
| | | | | | | | On my work machines, I'll make a file ~/.bashrc.d/prompt.bash which includes a PROMPT_VCS=(git svn) line. I don't really use Mercurial at all, now that the Vim sources have moved to Git; certainly not enough to check for it on every prompt load ...
* Unsigned integers for printfTom Ryder2016-02-271-1/+1
|
* Add missing case terminatorTom Ryder2015-12-241-0/+2
|
* Switch to a faster method of array appendingTom Ryder2015-12-141-8/+8
| | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a
* Remove overkill chopping on BASH_VERSINFO[0]Tom Ryder2015-08-221-1/+1
| | | | Pointed out by Amy Grace.
* Allow PROMPT_PREFIX and PROMPT_SUFFIXTom Ryder2015-06-091-2/+11
| | | | Also break the prompt definition into multiple lines for readability
* Consistent alphabetical order for read optsTom Ryder2015-06-071-2/+2
|
* Remove duplicate declarationTom Ryder2015-06-061-3/+0
|
* Rearrange variables for tput stringsTom Ryder2015-06-061-2/+4
|
* Safer version testTom Ryder2015-06-061-1/+1
|
* Separate declaration from assignmentTom Ryder2015-06-061-10/+7
|
* Avoid command substitution inline declarationTom Ryder2015-06-061-2/+4
|
* Use consistent [[ syntaxTom Ryder2015-06-041-2/+2
| | | | Explicit -n, ! within [[
* Correct argument test in bd() and prompt()Tom Ryder2015-06-041-1/+1
|
* Exit with 2 on usage errors like Bash builtinsTom Ryder2015-05-291-1/+1
|
* Change if-elseif chain to a switch-caseTom Ryder2015-03-251-20/+27
|
* Better read d-null syntaxTom Ryder2014-11-011-2/+2
|
* Remove misfeatureTom Ryder2014-10-301-14/+2
| | | | Very seldom actually going to use this
* Counted fields wrongTom Ryder2014-10-231-4/+4
|
* Show nice level of current process if /procTom Ryder2014-10-231-2/+15
|
* Error out on bad prompt callsTom Ryder2014-10-231-0/+4
|
* Define PS{2..4}, including a nice PS4 for set -xTom Ryder2014-10-181-2/+8
|