Commit Graph

96 Commits (ae88dbe7dba0c0b1fa0e1628879e9ebb2fd3d084)

Author SHA1 Message Date
Bo Jeanes bb3c0db4b1 Setup ASDF from Homebrew properly 2021-11-18 11:45:39 +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 385ff29089 Start or join tmux session when SSHing into server 2020-10-24 18:36:06 +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 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 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 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 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 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 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 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 5e08afe4d0 Set better default FZF command (when ag installed) 2019-08-29 10:04:05 +10:00
Bo Jeanes 0f1a9785c4 Better cross-platform compat for testing for bins 2019-08-29 10:03:32 +10:00
Bo Jeanes 390cd79187 Set MIX_ENV for editor 2019-08-29 10:02:43 +10:00
Bo Jeanes 8daf907e0c Add asdf 2019-08-29 10:01:19 +10:00
Bo Jeanes 49ba55207f /shrug 2019-07-22 16:21:32 +10:00
Bo Jeanes 5f99942c10 Experiment with 2-line ZSH prompt 2017-04-02 10:18:39 +10:00
Bo Jeanes 3eb8b8be6a Tweak blue colour in prompt 2017-04-02 10:18:23 +10:00
Bo Jeanes b7089b50bf I never really started using nvm, so remove config for now 2017-04-02 10:18:01 +10:00
Bo Jeanes 7a11aa827a Try to work around buggy `zeus` behaviour w/ alias
If zeus process crashes, it leaves the terminal in shambles :|
2017-04-02 10:17:14 +10:00
Bo Jeanes bd2981a4aa Just disable auto-tmux stuff for now 2015-10-10 15:09:00 +11:00
Bo Jeanes 0f689cdd41 nvm 2015-09-02 12:38:21 +10:00
Bo Jeanes c33f6616f7 emacs aliases for shell 2015-09-02 12:38:20 +10:00
Bo Jeanes b688e8945b Extract out prompt function so the prompt can be overridden and extended 2015-08-07 15:18:26 +10:00
Bo Jeanes 3009d6dc23 Spacemacs 2015-08-05 16:46:53 +10:00
Bo Jeanes 1d4ceca95e Shell overview 2013-12-03 10:48:19 -08:00
Bo Jeanes 846e0b9c27 Don't set default ruby from shell start up 2013-12-03 10:47:16 -08:00
Bo Jeanes 597b1feda9 Submodule some zsh deps 2013-11-11 20:24:58 -08:00
Bo Jeanes a0ff32e951 Misc changes 2013-10-11 10:02:35 -07:00
Bo Jeanes c78b9cbbc1 Slight performance tweak 2013-04-04 20:27:00 -05:00
Bo Jeanes e067430faa Fix pbcopy/pbpaste wrapper installer 2013-04-04 20:26:51 -05:00
Bo Jeanes 2244d39aa5 bash compatibility issues 2013-04-02 16:29:28 -05:00
Bo Jeanes 8c30f2c66f Simplify current ruby output for rbenv/rvm 2013-04-01 13:00:33 -05:00