e6fe41c5a1
Change --type int to --type bool for a git command.
2023-11-03 23:14:19 +00:00
c74bce5532
Handle the .gitconfig-* files in .bashrc.
2023-11-03 21:56:22 +00:00
267df1ce73
Remove use of SANITISED_REPO in .bashrc. Change colour reset value.
2023-10-29 21:17:47 +00:00
04c05f61de
Don't continue prompt if there's no commits.
2023-10-28 23:07:34 +01:00
83532d8497
Add git auto-merge reporting to prompt command.
2023-10-28 23:05:17 +01:00
b2744e183e
Run git prefetch as PROMPT_COMMAND. Modify alias handling for Darwin.
2023-10-28 21:53:42 +01:00
6348677876
Clean up .bashrc.
2023-10-25 16:05:55 +01:00
558f4760b9
Remove obsolete GIT_PROMPT_AUTO_PREFETCH option.
2023-10-25 15:25:14 +01:00
db80689044
Clean up rev-parse usage. check-ignore uses current dir.
2023-10-20 21:11:53 +01:00
303b2db0bd
Save history from this session before reloading it.
2023-10-20 20:30:22 +01:00
166584a459
Use SIGKILL for stopping long git jobs.
2023-10-20 20:29:01 +01:00
caee9b46d3
Do prefetch in any part of repo, not just the root.
2023-10-20 20:23:10 +01:00
42de61aa61
Use timeout to limit possibly long running git commands in some repos.
2023-10-20 20:15:03 +01:00
c6cc2f3160
Update way to get branch name in git repo.
2023-10-19 15:43:54 +01:00
6fcb314bef
For git prompt, allow repos to disable prefetch.
2023-10-12 20:30:36 +01:00
66537fbcde
Fix branch detection.
2023-10-10 16:25:34 +01:00
06128ca26d
Silence error from unalias nano.
2023-10-10 16:17:07 +01:00
afa147d4d0
Typo in .bashrc.
2023-10-10 13:43:09 +01:00
551bfaa772
.bashrc: Re-order git prompt, use local ref for upstream prefetch status.
2023-10-10 13:32:43 +01:00
635dc5d53b
Reset GIT_REPO_INFO[6] after prefetch.
2023-10-07 21:45:11 +01:00
56ecba9df9
Enable GIT_PROMPT_AUTO_PREFETCH.
2023-10-07 21:03:04 +01:00
5ddf11681d
Various updates to __prompt_git_status in .bashrc. See full log.
...
* Update various comments, include expected arguments and example prompt.
* Use IFS to split GIT_REPO_INFO on \n rather than spaces.
* If the repository has no commits yet, display "!NO COMMITS!" as the branch.
* Use the GIT_REPO_INFO for top-directory instead of another call out to git.
* Use pwd -P to force actual paths not following symlinks.
* Pull upstream status if GIT_PROMPT_AUTO_PREFETCH is set, the current
directory is the git repo top-dir and maintenance tasks for this repo have
been enabled. This allows reporting whether the branch is behind the
remote by any number.
2023-10-07 20:29:01 +01:00
9424108f34
Fix quoting.
2023-10-02 20:52:19 +01:00
f0168a0f69
Expand use of GIT_REPO_INFO. Foundation work for prefetch support.
2023-10-02 20:40:52 +01:00
3912d602b4
Typo in .bashrc.
2023-10-02 18:56:35 +01:00
c7dd83b058
Show an uncommitted marker in the git prompt.
2023-10-02 15:39:28 +01:00
3029da7929
Use FD 9 instead of {FD}. Move PLATFORM definition.
2023-10-02 13:50:19 +01:00
fbf74989f3
Use correct stat args and fix FD handling on Darwin.
2023-10-01 23:15:21 +01:00
ac6e509827
Set HISTSIZE to prevent issue on Darwin.
2023-10-01 22:30:09 +01:00
1c1e4c9e42
Fix PS1 output on Darwin.
2023-10-01 22:18:43 +01:00
828f9c3559
Fix colours in output to use escape codes.
2023-10-01 21:43:43 +01:00
06d1bab7a6
Use global PLATFORM. Add dynamic .nanorc support. Fix git prompt.
2023-10-01 20:40:46 +01:00
b920251437
Add credit.
2023-10-01 18:02:07 +01:00
1ec658baf4
Remove fixme from .bashrc.
2023-10-01 17:59:05 +01:00
8ad75039f3
Use a function to get the colour for the username part of prompt.
2023-10-01 17:57:09 +01:00
518567cabd
Add git status information to prompt.
2023-10-01 17:31:19 +01:00
213379254e
Handle nano on darwin differently.
2023-09-30 15:29:55 +01:00
a82f8fd652
Fucking typo!
2023-09-30 14:46:44 +01:00
eb6912cf66
Handle nano versions <= 4 differently.
2023-09-30 14:37:37 +01:00
39d0644aee
Sync .bashrc.
2023-09-30 12:15:50 +01:00
966d294879
Query the local terminal for gpg passphrases.
2023-09-29 17:45:48 +01:00
fed89c9949
Various updates to .bashrc - see full log.
...
Rework a lot of the ssh agent handling functions.
Use $HOME rather than ~.
Increase history file size to 1m lines.
Use a 3rd colour for the prompt's username if it's != (root|tadgy).
Quote some variables.
Handle .nanorc files on Linux and Darwin.
Refactored some code, nothing major.
2023-09-29 16:33:03 +01:00
dcac32200e
Remove shellcheck alias.
2023-08-24 15:04:29 +01:00
6debda37c9
Correct sftp alias and unset _EXEC at end of ssh function.
2023-02-08 19:15:51 +00:00
b1464f4f47
Correct fgrep alias.
2022-10-10 22:35:06 +01:00
90b6565239
Add iotop alias.
2022-10-09 01:59:55 +01:00
6920a2a8f0
Make it clear which agent the message refers to.
2022-09-23 17:40:08 +01:00
a5d8f0f7fb
Remove prompt examples I'll never use.
2022-09-12 08:00:18 +01:00
53081b6917
Add ssh-agent handling. Update things for shellcheck. Reorganise.
2022-09-12 07:57:10 +01:00
d4b1ffb8bf
Add an alias for 'ip' to use colour.
2022-09-07 22:35:39 +01:00