Commit Graph

659 Commits (d95a496d9dd87755a9f6033b6f1ec5fc85be3bc2)

Author SHA1 Message Date
Bo Jeanes d95a496d9d [vim] Don't choose first auto-complete on ENTER
This is really annoying at the end of a line when you might actually
mean _next line_. I'd rather hit TAB then ENTER to explicitly tab
through the auto-complete list.
2020-08-25 08:14:38 +10:00
Bo Jeanes 12b8e40957 [vim] Convenient terminal behaviour
Alt+T to toggle a 12-row high split at bottom
2020-08-24 14:32:36 +10:00
Bo Jeanes 0d6565f2e7 [vim] Add vim-test and mappings 2020-08-24 14:32:31 +10:00
Bo Jeanes 79c8718ae7 [vim] Select tab completion with Enter 2020-08-24 14:32:28 +10:00
Bo Jeanes 9fb6b41701 [vim] Add snippets 2020-08-24 14:32:25 +10:00
Bo Jeanes 7fc97bfd54 [git] Change default branch to `main` 2020-08-24 14:32:25 +10:00
Bo Jeanes 3cf35a7bd6 pbpaste/pbcopy aliases for Linux 2020-08-24 14:32:22 +10:00
Bo Jeanes b3b9ee4dcc Hard-code .dotfiles path
Before I switched to Fresh, I assembled my dotfiles with my own script
that ensured this was set, but it is no longer set. I don't need the
dot files directory to be customisable, so I'll just hard-code the path
2020-08-24 14:32:22 +10:00
Bo Jeanes 0367b771db Add global Rubocop config
It is based on the one I developed while CTO at Covidence, but with a
few additions since then.
2020-08-24 14:32:22 +10:00
Bo Jeanes aea690dbc4 [vim] Make default text width wider
I _do_ prefer code in narrower style than long lines, but I have been
persuaded that 80 characters is too narrow on today's high-DPI,
wide-screen monitors. 120 is pushing it in terms of readability
nonetheless (lots of research to show that humans have difficulty
reading long lines, mostly because progressing to the next line can mean
we lose our place).
2020-08-24 14:32:22 +10:00
Bo Jeanes 121dfecded [vim] Re-use buffers 2020-08-24 14:32:22 +10:00
Bo Jeanes a93500bf6f [vim] Add a few plugins
- CtrlSF for project-wide find and replace
- vim-visual-increment allows numbering a visually-selected column
  incrementally
- vim-visual-multi gives multiple cursors at once allowing for easy
  refactors of certain kinds
2020-08-24 14:32:22 +10:00
Bo Jeanes 60426276ba [vim] Fix warning 2020-08-24 14:32:22 +10:00
Bo Jeanes 22477d38a6 [vim] Use CoC.nvim for Ruby and Rust; disable ALE 2020-08-24 14:32:22 +10:00
Bo Jeanes 85afb5c2df [vim] Hide indent lines in FZF panel 2020-08-23 11:20:43 +10:00
Bo Jeanes 280d908f17 Erlang/elixir tweaks
These were on my old laptop uncommitted so I don't remember why some of
these changes were made, but I trust they were probably done for a good
reason :)
2020-06-13 14:32:29 +10:00
Bo Jeanes 8eee4d0ca5 Enable auto-formatting in Vim with rustfmt 2020-06-13 14:32:12 +10:00
Bo Jeanes cce76f853f Ignore .tool-versions files from Git, by default 2020-06-13 14:31:33 +10:00
Bo Jeanes 55d7637afb Fix WSL check
Prior to this fix, as implemented it caused a false positive.
2020-06-13 14:30:36 +10:00
Bo Jeanes 70c04afb18 Disable node_version component and just use asdf
Only bypassing ASDF for Rust, because `rustup` can read a toolchain file
in a rust project and bypass whatever ASDF has set anyway.
2020-05-26 13:49:54 +10:00
Bo Jeanes 8bf8753e22 Update global .gitignore 2020-05-26 13:38:39 +10:00
Bo Jeanes 1db2564388 Switch git pager from diffr[1] to delta[2]
[1]: https://github.com/mookid/diffr
[2]: https://github.com/dandavison/delta
2020-05-26 13:37:48 +10:00
Bo Jeanes 98e503a17e Abbreviate WSL home dir to ~win
Thanks @romkatv![1]

[1]: https://github.com/romkatv/powerlevel10k/issues/764#issuecomment-633499665
2020-05-26 13:36:21 +10:00
Bo Jeanes 4f1e7c0797 Update tool versions 2020-05-26 13:36:12 +10:00
Bo Jeanes 7c0e2d78ae Remove files unused since the switch to Fresh 2020-05-26 13:35:50 +10:00
Bo Jeanes f2bc9fe158 Switch ZSH prompt to P10K 2020-05-26 13:35:21 +10:00
Bo Jeanes f1a146d9b4 Switch {zsh,fast}-syntax-highlighting 2020-05-26 13:33:59 +10:00
Bo Jeanes 6ecd8cf273 Only check for `WSL` in osrelease
https://github.com/microsoft/WSL/issues/423#issuecomment-611086412
2020-05-04 14:39:47 +10:00
Bo Jeanes 12c29a2106 Only start cron if not already running 2020-05-04 14:39:19 +10:00
Bo Jeanes e52ad462c2 Start root's cron under WSL
WSL2 has some uncontrolled memory growth, so a cronjob to clear caches
is a prudent way to help until it is resolved.

https://github.com/microsoft/WSL/issues/4166#issuecomment-604707989
2020-05-04 14:34:21 +10:00
Bo Jeanes c605d74642 Ignore .vscode directory by default 2020-05-04 14:29:38 +10:00
Bo Jeanes 82e25eb09a Update default tool versions 2020-05-04 14:29:28 +10:00
Bo Jeanes bf32c1357d Configure git credential helper under WSL
TODO make this a `git config` command so it is naturally idempodent.
2020-05-04 14:28:15 +10:00
Bo Jeanes 1fdbb88e66 Re-arrange configuration of local gitconfig 2020-05-04 14:27:37 +10:00
Bo Jeanes 11a193fafa Load local config 2020-05-04 14:26:54 +10:00
Bo Jeanes c77820e856 Hook into Windows' SSH Agent under WSL
This will securely store SSH key in the host system, tied to your user
account, will be locked when Windows is locked, and will avoid having to
type SSH passphrase in every new window you open.
2020-04-03 20:32:58 +11:00
Bo Jeanes 0444b73bd5 Remove shell aliases I no longer use
(esp `ss`, which conflicts with an actual command)
2020-04-03 20:31:46 +11:00
Bo Jeanes 6d54f020c7 Configure `asdf` versions 2020-04-03 16:07:22 +11:00
Bo Jeanes ef83444e56 Start porting Bash configs to Fresh management 2020-04-03 10:47:33 +11:00
Bo Jeanes ef5dc4fc33 Add some more bins to dotfiles 2020-04-03 10:47:33 +11:00
Bo Jeanes cb51dd7e75 Improve ZSH completions loading 2020-04-03 10:47:33 +11:00
Bo Jeanes 2c0385ee10 Make ZSH plugin loading a bit more consistent 2020-04-03 10:47:33 +11:00
Bo Jeanes f454a79798 Add `arst` alias for `asdf` and fix error in zsh
We were loading the Bash completions in ZSH which caused an error. I
broke out Bash completion loading separately.
2020-04-03 10:47:33 +11:00
Bo Jeanes 4d613c1d22 More nuanced zsh history searching
up/down - search history using command as prefix
shift+up/down - search history using command as filter (non-prefix)
page up/page down - same as shift+up/shift+down
2020-04-03 10:40:26 +11:00
Bo Jeanes 1aa3612dd8 Fix arrow keys in ZSH insides WSL/Windows Terminal 2020-04-03 10:23:55 +11:00
Bo Jeanes 36c1936292 Preserve existing PATH
In WSL2, the PATH is pre-filled with Windows' PATH contents (which are
still executable within WSL Linux distros). For instance, `code .` to
open VS Code works by finding `code` in the Windows filesystem, which is
conveniently already specified in the PATH.
2020-04-02 14:44:29 +11:00
Bo Jeanes c628d7e885 Fix issue with unbound variable 2020-04-02 14:17:05 +11:00
Bo Jeanes 2214a99044
Associate elixir lang with .ex{s,} for git diff
https://www.reddit.com/r/elixir/comments/eozrqd/using_functioncontext_with_elixir_and_git_225/
2020-01-16 09:28:03 +11:00
Bo Jeanes 88b3373622 [vim] Remove RootIgnore plugin, as it errors 2019-09-08 12:14:13 +10:00
Bo Jeanes c16182e9fe [vim] Misc 2019-09-08 12:11:57 +10:00