Commit Graph

680 Commits (pre-nix)

Author SHA1 Message Date
Bo Jeanes ae88dbe7db
fix delta syntax 2024-07-03 16:15:34 +10:00
Bo Jeanes bb3c0db4b1 Setup ASDF from Homebrew properly 2021-11-18 11:45:39 +11:00
Bo Jeanes cbdacbd7bc
Update freshrc 2021-11-18 11:10:21 +11:00
Bo Jeanes 65e0a1b8f0
Add setup instructions 2021-11-18 11:09:43 +11:00
Bo Jeanes b22171074f Fix after hook in freshrc
Doing `test && cmd` means that the command as a whole fails if the test
fails, which causes Fresh to think the hook failed. Using a proper
conditional (or suffixing `|| true`) would have done the trick.
2020-10-25 08:45:19 +11:00
Bo Jeanes 0a357dac9b OK this is how I want Tmux to work
I _thought_ this was how it was working before but apparently not ?
2020-10-25 08:44:04 +11:00
Bo Jeanes 70ddba3e45 Simplify Tmux auto-joining
This seems to have changed quite a bit since I was using this regularly
(~8 years ago) and in my testing today seems to create a situation where
every separate session is bound to the same active window. So, while it
created a new tmux window (tab) each time I connected, it unfortunately
kept all my Terminal windows/sessions in sync so I couldn't view two
different Tmux windows within the same session using two different
terminal windows.
2020-10-24 20:28:38 +11:00
Bo Jeanes e4c38e95d8 Drop into tmux before p10k instant prompt
Otherwise tmux doesn't think it is inside a tty MOST of the time.
2020-10-24 19:22:54 +11:00
Bo Jeanes 1dfcae5ac3 Don't assume macOS or ZSH 2020-10-24 18:58:49 +11:00
Bo Jeanes 0474776220 Update tmux.conf for newer version
It's been a while since I used it!

https://stackoverflow.com/a/33336609/56690
2020-10-24 18:41:23 +11:00
Bo Jeanes 57747b7be5 Fix tmux conf error 2020-10-24 18:41:18 +11:00
Bo Jeanes 385ff29089 Start or join tmux session when SSHing into server 2020-10-24 18:36:06 +11:00
Bo Jeanes b6ed73162c Only generate .tool-versions when ASDF is installed 2020-10-24 17:54:25 +11:00
Bo Jeanes d7cbf8caf6 Fix coc.nvim according to random GH issue comment 2020-10-24 17:50:46 +11:00
Bo Jeanes f0f5230997 Follow file renames in `git log <file>` 2020-10-24 17:50:20 +11:00
Bo Jeanes 14e108acf1 Add to gitignore 2020-10-24 17:50:00 +11:00
Bo Jeanes dd5ef2098d Add TODO 2020-10-24 17:49:52 +11:00
Bo Jeanes d968f08ef2 Generate .tool-versions with latest installed 2020-10-24 17:49:35 +11:00
Bo Jeanes dd7316cc7f Add neovim conditional 2020-10-24 17:48:38 +11:00
Bo Jeanes ffe9e6eace
Prepend /usr and /opt to ensure they come before /bin 2020-10-24 17:47:00 +11:00
Bo Jeanes 22ad16a8cb
Add ~/.local/bin to PATH 2020-10-24 17:11:43 +11:00
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