Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Quote a PS1 character to appease shellcheck | Tom Ryder | 2016-08-14 | 1 | -1/+1 | |
| | ||||||
* | Two extra comments | Tom Ryder | 2016-08-14 | 1 | -0/+2 | |
| | ||||||
* | Rearrange prompt variable assignments a bit | Tom Ryder | 2016-08-14 | 1 | -10/+12 | |
| | ||||||
* | Use --quiet flag for prompt git-rev-parse(1) call | Tom Ryder | 2016-08-14 | 1 | -1/+1 | |
| | ||||||
* | Use porcelain commands for Git prompt | Tom Ryder | 2016-08-13 | 1 | -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 prompt | Tom Ryder | 2016-08-10 | 1 | -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 dir | Tom Ryder | 2016-07-30 | 1 | -3/+0 | |
| | ||||||
* | Quote expansions within parameter expansions | Tom Ryder | 2016-07-15 | 1 | -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 ''` idiom | Tom Ryder | 2016-07-15 | 1 | -2/+2 | |
| | ||||||
* | Remove unneeded linebreak backslashes | Tom Ryder | 2016-06-21 | 1 | -8/+8 | |
| | | | | | | | | | | | Handy command: $ find bin sh bash -type f -exec grep \ -e '|| \\$' \ -e '&& \\$' \ -e '^\s*||' \ -e '^\s*&&' \ {} + | |||||
* | Switch from prompt image to plain text | Tom Ryder | 2016-06-09 | 1 | -1/+1 | |
| | | | | More compatible, want to display this in Cgit as well | |||||
* | Move PROMPT_RETURN declaration to top of func | Tom Ryder | 2016-05-04 | 1 | -1/+4 | |
| | ||||||
* | Add means to change prompt color | Tom Ryder | 2016-04-23 | 1 | -3/+8 | |
| | ||||||
* | Remove blank lines at end of files | Tom Ryder | 2016-03-28 | 1 | -1/+0 | |
| | ||||||
* | Remove unneeded read junk var | Tom Ryder | 2016-03-15 | 1 | -1/+1 | |
| | ||||||
* | Protect PS1 variable expansions | Tom Ryder | 2016-03-15 | 1 | -2/+2 | |
| | ||||||
* | Only show git VCS stuff by default | Tom Ryder | 2016-03-14 | 1 | -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 printf | Tom Ryder | 2016-02-27 | 1 | -1/+1 | |
| | ||||||
* | Add missing case terminator | Tom Ryder | 2015-12-24 | 1 | -0/+2 | |
| | ||||||
* | Switch to a faster method of array appending | Tom Ryder | 2015-12-14 | 1 | -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 Ryder | 2015-08-22 | 1 | -1/+1 | |
| | | | | Pointed out by Amy Grace. | |||||
* | Allow PROMPT_PREFIX and PROMPT_SUFFIX | Tom Ryder | 2015-06-09 | 1 | -2/+11 | |
| | | | | Also break the prompt definition into multiple lines for readability | |||||
* | Consistent alphabetical order for read opts | Tom Ryder | 2015-06-07 | 1 | -2/+2 | |
| | ||||||
* | Remove duplicate declaration | Tom Ryder | 2015-06-06 | 1 | -3/+0 | |
| | ||||||
* | Rearrange variables for tput strings | Tom Ryder | 2015-06-06 | 1 | -2/+4 | |
| | ||||||
* | Safer version test | Tom Ryder | 2015-06-06 | 1 | -1/+1 | |
| | ||||||
* | Separate declaration from assignment | Tom Ryder | 2015-06-06 | 1 | -10/+7 | |
| | ||||||
* | Avoid command substitution inline declaration | Tom Ryder | 2015-06-06 | 1 | -2/+4 | |
| | ||||||
* | Use consistent [[ syntax | Tom Ryder | 2015-06-04 | 1 | -2/+2 | |
| | | | | Explicit -n, ! within [[ | |||||
* | Correct argument test in bd() and prompt() | Tom Ryder | 2015-06-04 | 1 | -1/+1 | |
| | ||||||
* | Exit with 2 on usage errors like Bash builtins | Tom Ryder | 2015-05-29 | 1 | -1/+1 | |
| | ||||||
* | Change if-elseif chain to a switch-case | Tom Ryder | 2015-03-25 | 1 | -20/+27 | |
| | ||||||
* | Better read d-null syntax | Tom Ryder | 2014-11-01 | 1 | -2/+2 | |
| | ||||||
* | Remove misfeature | Tom Ryder | 2014-10-30 | 1 | -14/+2 | |
| | | | | Very seldom actually going to use this | |||||
* | Counted fields wrong | Tom Ryder | 2014-10-23 | 1 | -4/+4 | |
| | ||||||
* | Show nice level of current process if /proc | Tom Ryder | 2014-10-23 | 1 | -2/+15 | |
| | ||||||
* | Error out on bad prompt calls | Tom Ryder | 2014-10-23 | 1 | -0/+4 | |
| | ||||||
* | Define PS{2..4}, including a nice PS4 for set -x | Tom Ryder | 2014-10-18 | 1 | -2/+8 | |
| | ||||||
* | Initialize flag vars | Tom Ryder | 2014-10-13 | 1 | -3/+3 | |
| | ||||||
* | Use arith context for boolean vars | Tom Ryder | 2014-10-13 | 1 | -7/+7 | |
| | ||||||
* | No args to prompt prints prompt strings | Tom Ryder | 2014-10-04 | 1 | -0/+6 | |
| | ||||||
* | Use PROMPT_RETURN instead of just ret | Tom Ryder | 2014-07-07 | 1 | -4/+4 | |
| | | | | | | Conflicts with ret variable in older versions of bash_completion. Normally don't like defining capital-var variables but I think it's appropriate in this case. | |||||
* | Detect typechanges in git prompt | Tom Ryder | 2014-06-16 | 1 | -2/+2 | |
| | ||||||
* | Be more specific about prompt part appearance | Tom Ryder | 2014-05-27 | 1 | -2/+2 | |
| | ||||||
* | Remove unneeded ${...} wraps around array derefs | Tom Ryder | 2014-02-19 | 1 | -1/+1 | |
| | | | | | Arrays can be dereferenced in arithmetic context, which I didn't realise until I actually tried it. This looks neater. | |||||
* | Use space before semicolon as command separator | Tom Ryder | 2014-02-10 | 1 | -29/+29 | |
| | ||||||
* | Remove some unneeded semicolons | Tom Ryder | 2014-02-10 | 1 | -3/+3 | |
| | ||||||
* | Declare vars as integers in prompt | Tom Ryder | 2014-02-05 | 1 | -5/+8 | |
| | ||||||
* | Reset three vars in one go | Tom Ryder | 2014-02-05 | 1 | -3/+1 | |
| | ||||||
* | Declare ret as an integer | Tom Ryder | 2014-02-05 | 1 | -1/+1 | |
| |