Commit Graph

53 Commits (85afb5c2dffc863d3c5824add5c40715bb8aad33)

Author SHA1 Message Date
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 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 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 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 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 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 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 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 846e0b9c27 Don't set default ruby from shell start up 2013-12-03 10:47:16 -08:00
Bo Jeanes a0ff32e951 Misc changes 2013-10-11 10:02:35 -07: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 3d22bd8d2b Fix psql function 2012-08-16 16:42:39 -05:00
Bo Jeanes a1c2fff9c8 Remove unused/annoying functions and set default JRuby options 2012-08-16 16:42:32 -05:00
Bo Jeanes dc44e9a714 Move osx-specific alias to the osx-only shell file 2012-08-16 16:42:06 -05:00
Bo Jeanes abd4aea77e Remove unused aliases 2012-08-16 16:41:44 -05:00
Bodaniel Jeanes 0b75da5513 Some more OS X shell stuff 2012-01-04 21:47:46 -06:00
Bodaniel Jeanes afbc403129 Move ZSH-specific command timing to zsh config 2012-01-04 21:46:51 -06:00
Bodaniel Jeanes 2deb06afc1 Cleanup 2012-01-04 21:45:19 -06:00
Bodaniel Jeanes 022bcd0871 Move Ruby/Rails and Git shell stuff into own files 2012-01-04 21:44:31 -06:00
Bodaniel Jeanes a413550e71 Never open GUI vim when triggered from an SSH session 2011-12-21 13:48:06 -06:00
Bodaniel Jeanes 182a7ccd4e Start a tmux session for every login and join windows with the main one. Also, fix pbcopy/pbpaste and vim clipboard inside tmux 2011-12-21 13:41:01 -06:00
Bodaniel Jeanes 3367b3e17a Ignore certain commands from shell history 2011-11-22 14:34:53 -06:00
Bodaniel Jeanes 92b0d459ce Add shell function to show most recent suspended job 2011-11-15 13:44:25 -06:00
Bodaniel Jeanes 6d104281df Changes 2011-11-03 11:39:10 -05:00
Bodaniel Jeanes 83181ec7a5 Simple bash prompt 2011-10-24 23:16:15 -05:00
Bodaniel Jeanes 81729e4439 Add prompt_pwd for bash 2011-10-24 23:05:16 -05:00
Bodaniel Jeanes 8dd25c16b5 Majorly refactor shell files
Changes:

* Reduce duplication across Bash and Zsh
* Increase code sharing between the two
* Automatically load shell files in 'lib' directories
* Zsh `precmd` emulation in Bash
* Move shared prompt (not compatible with Bash) to be Zsh only
* `rbenv` loading for each shell
* etc...

Still to do:

* Bash prompt
* Cross-shell terminal color abstraction
2011-10-24 22:40:00 -05:00
Bodaniel Jeanes eb04764952 WIP for new prompt path 2011-10-24 22:40:00 -05:00
Bodaniel Jeanes 3558715b82 Remove TODO 2011-10-24 22:40:00 -05:00
Bodaniel Jeanes cf09f1b575 Only show '@' in prompt when a user is present 2011-10-24 11:18:21 -05:00
Bodaniel Jeanes 1cb715649c Add TODO 2011-10-24 11:16:38 -05:00
Bodaniel Jeanes b1c363ab2d Fix missing '/' at beginning of prompt 2011-10-24 09:04:55 -05:00