Commit graph

69 commits

Author SHA1 Message Date
12bd327061 Fix branch detection. 2023-10-10 16:25:34 +01:00
76c5592bbf Silence error from unalias nano. 2023-10-10 16:17:07 +01:00
5a79342b87 Typo in .bashrc. 2023-10-10 13:43:09 +01:00
1d4cb9fb19 .bashrc: Re-order git prompt, use local ref for upstream prefetch status. 2023-10-10 13:32:43 +01:00
6514f52d1f Reset GIT_REPO_INFO[6] after prefetch. 2023-10-07 21:45:11 +01:00
c20d90458f Enable GIT_PROMPT_AUTO_PREFETCH. 2023-10-07 21:03:04 +01:00
735e2d504e 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
89417043fc Fix quoting. 2023-10-02 20:52:19 +01:00
1c2393d0b3 Expand use of GIT_REPO_INFO. Foundation work for prefetch support. 2023-10-02 20:40:52 +01:00
7509d2536d Typo in .bashrc. 2023-10-02 18:56:35 +01:00
9bac8a06bd Show an uncommitted marker in the git prompt. 2023-10-02 15:39:28 +01:00
ddf639d0bf Use FD 9 instead of {FD}. Move PLATFORM definition. 2023-10-02 13:50:19 +01:00
3bbc0192dc Use correct stat args and fix FD handling on Darwin. 2023-10-01 23:15:21 +01:00
dff85c6688 Set HISTSIZE to prevent issue on Darwin. 2023-10-01 22:30:09 +01:00
bdc37dd14e Fix PS1 output on Darwin. 2023-10-01 22:18:43 +01:00
9b3d7fecc5 Fix colours in output to use escape codes. 2023-10-01 21:43:43 +01:00
c754664dc8 Use global PLATFORM. Add dynamic .nanorc support. Fix git prompt. 2023-10-01 20:40:46 +01:00
eb1c37ae1c Add credit. 2023-10-01 18:02:07 +01:00
99caf81ebc Remove fixme from .bashrc. 2023-10-01 17:59:05 +01:00
b0af5d148b Use a function to get the colour for the username part of prompt. 2023-10-01 17:57:09 +01:00
538425eeae Add git status information to prompt. 2023-10-01 17:31:19 +01:00
39d61d993d Handle nano on darwin differently. 2023-09-30 15:29:55 +01:00
b196bd7b4f Fucking typo! 2023-09-30 14:46:44 +01:00
a27530bf01 Handle nano versions <= 4 differently. 2023-09-30 14:37:37 +01:00
a97cdb9d10 Sync .bashrc. 2023-09-30 12:15:50 +01:00
e22f53dac0 Query the local terminal for gpg passphrases. 2023-09-29 17:45:48 +01:00
1255f0fff6 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
2880b02fcf Clean up .bash* and add some new aliases. 2022-09-07 20:29:59 +01:00
c5cb72c568 Update psgrep function to include colour. 2021-09-24 19:43:16 +01:00
dbded93c95 Make pine use local configs now. Comment pine alias. 2021-08-31 19:25:05 +01:00
abca6296c0 Rework how screen is handled upon login. 2021-03-27 09:15:19 +00:00
5ba3e060b2 Remove (partially) broken ssh-agent handling code. Don't use _ for temp variables. 2021-03-27 05:22:21 +00:00
233680cd76 Use $HOSTNAME instead of $(hostname) in .bash* 2021-03-26 05:37:13 +00:00
c67a0e62e1 Merge branch 'master' of http://afterdark.org.uk/git/tadgy/dotfiles-tadgy 2021-01-19 18:08:17 +00:00
719da537b4 Added imagebin function. 2021-01-08 18:47:36 +00:00
e106e8eb5d Merge branch 'master' of http://afterdark.org.uk/git/tadgy/dotfiles-tadgy 2020-12-02 20:12:06 +00:00
60f84452cf Added screen_attach function to start/reattach screen sessions on console/xterm. 2020-12-02 20:06:29 +00:00
eb2d77d0b0 Update for new mailserver domain. 2020-07-21 19:19:44 +01:00
ec24e87c5a Bash history now uses host specific file. 2020-07-03 12:06:28 +01:00
09674dd332 Replace 'pastebin' alias, now uses termbin.
Syntax updates.
2019-07-03 18:41:44 +01:00
8eb97d0c3f Make the psgrep function ignore the results of itself. 2019-07-03 18:11:49 +01:00
4e5fee870f Updated comments. 2019-07-02 22:20:57 +01:00