aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
Commit message (Collapse)AuthorAgeFilesLines
* Break a long lineTom Ryder2017-02-101-2/+2
|
* Break a long lineTom Ryder2017-02-101-1/+2
|
* Improve and correct some commentsTom Ryder2017-02-101-4/+4
|
* Start using Bash host completionTom Ryder2017-01-281-0/+4
| | | | But use ~/.hosts if it's there
* Extend "fallback" prompt a bitTom Ryder2017-01-271-1/+4
| | | | Include username/hostname if no SSH variables
* Show prompt prefix if a shell is exoticTom Ryder2017-01-251-0/+6
| | | | | | | That is, include e.g. "ksh:" as a prefix to the prompt if the user appears to have Bash or Zsh (or anything else) as their login shell. This is probably imperfect, but it's a start.
* Be more specific in ref name trimmingTom Ryder2017-01-251-1/+1
| | | | | e.g. for a namespaced branch "foo/bar/bar", don't strip the leading part off
* Remove SHLVL nested shell feature for nowTom Ryder2017-01-241-6/+0
| | | | | Causes a bit too much curliness in configuration; may need a more comprehensive approach.
* Add workaround to what looks like a bug to meTom Ryder2016-12-271-0/+5
|
* Tell ShellCheck to ignore an errorTom Ryder2016-12-271-0/+1
| | | | | ret actually is assigned, just not in any place ShellCheck could reasonably be expected to find
* Realised easy win avoiding subshellsTom Ryder2016-12-271-7/+4
| | | | And also the PROMPT_RETURN fudge in Bash/Zsh
* Use [!...] not [^...]Tom Ryder2016-12-221-1/+1
| | | | More portable
* Fix printf argument mismatch bugsTom Ryder2016-12-212-2/+2
| | | | What did we do before ShellCheck?
* Use clearer logic for prompt color settingTom Ryder2016-12-211-8/+7
|
* Request version with "ver" shortcut not promptTom Ryder2016-12-191-0/+4
|
* Attempt a much saner approach to managing SHLVLTom Ryder2016-12-191-3/+2
|
* Handle tmux sessions showing SHLVL properlyTom Ryder2016-11-301-3/+3
|
* Only add > starting from SHLVL=2Tom Ryder2016-11-301-1/+1
|
* Add > signs to show shell indentation levelTom Ryder2016-11-301-0/+7
| | | | | This needs extension to handle tmux sessions; it should be something like SHLVL - TMUX_SHLVL, which I'm not quite sure how to implement yet.
* Correct check of --is-work-tree testTom Ryder2016-10-151-1/+1
|
* Add % prefix to job spec completionTom Ryder2016-10-041-2/+2
|
* Stop `keep` writing empty files for undef varsTom Ryder2016-09-301-13/+12
|
* Completion for aliasesTom Ryder2016-09-231-1/+4
|
* Add some var quoting within param expansionTom Ryder2016-09-201-6/+6
|
* Block output/error from prompt tput(1)/git(1)Tom Ryder2016-09-201-102/+102
| | | | Should make things just a little bit faster
* Fix an issue (silencing Git prompt errors)Tom Ryder2016-09-081-1/+1
|
* Restore old code for describing Git prompt commitTom Ryder2016-09-071-1/+2
| | | | | | | | | | | | | | | I'm really confused. I could have sworn this was working correctly (i.e. the --always option spat out a short reference to the commit as a fallback), but I must have been wrong. Maybe I hadn't installed the appropriate file when I was testing it. At first I thought this was a bug introduced in Git 2.10, but the short-circuit disregarding --always if --exact-match or --candidates=0 is set seems to have been in the `describe` builtin for ages. I must have just tested poorly; I can't see any other explanation in the source. No matter; this isn't much slower.
* Complete kill builtin with jobspecs and user PIDsTom Ryder2016-09-051-1/+1
|
* Flesh out builtin completions a littleTom Ryder2016-09-051-7/+8
|
* Test number of colors properly for promptTom Ryder2016-09-031-31/+26
|
* Correct completions for declare, typeset etcTom Ryder2016-09-011-4/+1
| | | | All of them can accept function names
* Restore git symbolic-ref as first attemptTom Ryder2016-08-311-2/+4
| | | | | Otherwise if two branches point to the same commit, you can't be sure which one will show up.
* Efficiency tweaks for Subversion promptTom Ryder2016-08-311-17/+11
|
* Stop loop when we have needed svn info varsTom Ryder2016-08-311-3/+2
|
* Remove unneeded fallback for $nameTom Ryder2016-08-311-2/+1
| | | | We've already bailed out by this point if we couldn't get one
* Move git index update higher upTom Ryder2016-08-311-3/+3
|
* Use simpler method to find branch nameTom Ryder2016-08-311-11/+9
| | | | | Only one call to git(1), too; seems to work at least as far back as Git v1.5.6.5
* Use shorter "or" syntax within [[ ]]Tom Ryder2016-08-311-1/+1
|
* Add mapfile to completions (conditional on vers)Tom Ryder2016-08-291-0/+3
|
* Move COMP_WORDBREAKS tweaks to completion subfileTom Ryder2016-08-291-0/+5
|
* Use -n test and temp var for working tree testTom Ryder2016-08-271-2/+3
|
* Show REBASE,MERGE etc in Git promptTom Ryder2016-08-251-2/+16
| | | | | Again pretty much pilfered from the contrib git prompt script in the Git source
* Show tag name in Git prompt if commit is taggedTom Ryder2016-08-251-1/+3
|
* Refine git prompt commands a bitTom Ryder2016-08-241-3/+4
| | | | Informed by git-prompt.sh from the Git source distribution
* Fully expand FUNCNAMETom Ryder2016-08-233-12/+12
|
* Add -r to read to placate shellcheckTom Ryder2016-08-231-1/+1
|
* If HEAD not set, suppress errorTom Ryder2016-08-231-1/+1
|
* Correct test written in previous commitTom Ryder2016-08-231-1/+2
|
* Check SSH_CLIENT *and* SSH_CONNECTION for promptTom Ryder2016-08-231-1/+1
|
* Experiment with abbreviated promptTom Ryder2016-08-231-2/+5
| | | | And an even more strict tmux environment