Commit Graph

86 Commits (cce76f853fc83f4d2e6cea96736cd300a69386fe)

Author SHA1 Message Date
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
Bo Jeanes dfc4ec4a53 Fix ruby switcher detection for non-chruby 2013-04-01 13:00:14 -05:00
Bo Jeanes 810b84cf77 If no ruby switcher is installed, don't try to figure out version 2013-04-01 12:48:11 -05:00
Bo Jeanes 76fa447d90 Git improvements 2013-03-31 16:03:55 -05:00
Bo Jeanes 06ab47e726 Support chruby 2013-03-31 16:03:43 -05:00
Bo Jeanes 1d72b1f1cf In-line rbenv stuff into ruby.sh 2013-03-22 22:10:49 -05:00
Bo Jeanes ecea8cb317 Rails 3+ has dbconsole now, so this isn't needed 2013-03-21 19:42:24 -05:00
Bo Jeanes f48931f4e8 Try to get my zsh config loadable inside emacs shell 2013-03-09 23:41:24 -06:00
Bo Jeanes b6a3a935fa Show when ZSH is waiting for completion 2013-03-09 23:39:27 -06:00
Bo Jeanes 10a2d1a43d Fix history 2012-12-04 18:55:32 -06:00
Bo Jeanes 4dbe2a4bcf improve ps1 2012-11-23 17:37:04 -06:00