Commit graph

147 commits

Author SHA1 Message Date
Danielle McLean cb917cbfb6
Use updated Zinit invocation approach 2023-11-19 14:12:38 +11:00
Danielle McLean a0beaae3c6
Remove unnecessary +x mode from .zshenv 2023-11-02 20:11:59 +11:00
Danielle McLean b3e27fe377
Fix Bat config flag syntax 2023-11-02 20:11:25 +11:00
Danielle McLean d85fdd0796
Remove Homebrewed GNU coreutils from path
I had these set up in the first place mostly because GNU ls supports
--color=auto and the BSD ls provided with MacOS didn't, causing problems
if I aliased ls to ls --color=auto.

And I don't really need that any more, especially since I prefer to use
lsd-rs/lsd in place of the coreutils ls nowadays. Additionally, the BSD
ls that comes with MacOS now *does* support that flag, so in a pinch it
can do what I need.

Defaulting to the natively installed coreutils should help my usage of
these tools more portable too, rather than always relying on GNU-isms.
Given my huge reliance on Zsh-specific features that's not something I'm
doing super well anyway, but still.
2023-10-31 15:36:13 +11:00
Danielle McLean fadf484cb7
Add a shebang so Vim knows what filetype dot-zshenv is 2023-10-28 13:14:33 +11:00
Danielle McLean bc3b256554
Add sharkdp/bat config flags I like 2023-10-25 11:38:40 +11:00
Danielle McLean 94a87665b3
Add simple sharkdp/bat config (just tab size for now) 2023-10-24 15:09:59 +11:00
Danielle McLean 8881b620a5
Simplify Perl version display in Starship 2023-10-23 15:32:47 +11:00
Danielle McLean 57037f5cc4
Migrate from .stow-rename to --dotfiles 2023-10-23 15:20:13 +11:00
Danielle McLean 88a40da33c
Remove some unused aliases 2023-10-16 13:18:47 +11:00
Danielle McLean 9464a3cfc6
Add basic LSDeluxe config file 2023-10-16 13:09:56 +11:00
Danielle McLean df7a44e078
Remove .stow-local-ignore since dots takes care of it 2023-10-16 13:07:22 +11:00
Danielle McLean cf1c918447
Fix deprecated config key in starship.toml 2023-10-14 19:56:23 +11:00
Danielle McLean 3cb0586a49
Disable 'magic' Zsh bindings to avoid painfully slow pasting 2023-09-18 15:34:06 +10:00
Danielle McLean 09d28eaae4
Add Bun icon to starship.toml 2023-09-18 09:45:44 +10:00
Danielle McLean 80f9567108
Pretty up Python version display in prompt 2023-07-13 13:18:53 +10:00
Danielle McLean 31ec6d2622
Nicely display command duration in prompt with icon 2023-07-13 13:18:35 +10:00
Danielle McLean a3e784bd5e
Always override ZDOTDIR if it's just set to ~ 2023-06-27 14:33:40 +10:00
Danielle McLean 9a16f59378
Enable K8S context in Starship prompt 2023-06-27 14:33:14 +10:00
Danielle McLean a86c8f0ea9
Add Google Cloud SDK bins to path 2023-06-15 10:30:01 +10:00
Danielle McLean a1c3043a5f
Alias for tunneling kubectl through local proxy 2023-06-15 10:29:27 +10:00
Danielle McLean 91da2c238d
Run nerdfix over Starship config 2023-05-09 12:53:21 +10:00
Danielle McLean 1bacee68ce
Update starship.toml uising Nerd Font Symbols preset 2023-05-03 11:52:38 +10:00
Danielle McLean 92f9db8f7b
Use sharkdp/vivid if it's available 2022-07-13 17:01:09 +10:00
Danielle McLean 3eec157285
Shift lots of shells' history into XDG_DATA_HOME 2022-07-12 11:05:15 +10:00
Danielle McLean efb24fc3f6
Push Ruby Bundler directories into XDG dirs 2022-07-12 11:05:14 +10:00
Danielle McLean 8bbc4bd3f2
Push Docker config into XDG_CONFIG_HOME 2022-07-12 11:05:13 +10:00
Danielle McLean c55664cce3
Move GOPATH into XDG_DATA_HOME 2022-07-12 11:05:12 +10:00
Danielle McLean 690df57f00
Set compromise XDG_RUNTIME_DIR if necessary
It's not ideal to set XDG_RUNTIME_DIR in your shell environment,
rather than from your session manager (or systemd, or whatever), since
then you can't reliably provide the same lifetime guarantees that
XDG_RUNTIME_DIR is supposed to have? But this is still preferable to not
having an XDG_RUNTIME_DIR at all, so I'm gonna go with it.
2022-07-12 11:05:11 +10:00
Danielle McLean f00062ec1b
Support the Kubernetes plugin manager, Krew
Why am I doing Kubernetes things, what has happened
2022-06-09 14:33:09 +10:00
Danielle McLean 0c569f6907
Add ~/Library/Python bins to path when they exist 2022-01-28 10:52:55 +11:00
Danielle McLean 09033f007a
Add Gems installed using Homebrewed Ruby to path 2022-01-25 10:35:04 +11:00
Danielle McLean a169761a36
Migrate from zdharma/ to zdharma-continuum/ 2021-11-15 15:56:25 +11:00
Danielle McLean 2255703a21
Provide better XDG compliance for Node.js
We want to store the Node REPL history in XDG_DATA_HOME, and we also
want to make sure we always have an npm config file that sets up npm
with its appropriate XDG paths. (By default, lots of stuff ends up in
~/.npm if no configuration is provided.)

As I mention in the diff, we can't simply commit the npm config file to
version control, because it contains things like authorisation tokens
that shouldn't be committed. We can however generate a default config
file that sets up the XDG paths we need, allowing the user to then go
ahead and add tokens to the generated file later on, like so.
2021-10-01 11:32:16 +10:00
Danielle McLean f06071e7c7
Drop fragile XDG_RUNTIME_DIR support
An XDG runtime directory cannot be provided reliably by the shell,
because it's supposed to have the same lifetime as the user's login
session, and the shell doesn't have a reliable way to keep track of that
lifetime. There are probably nonportable ways to get a conforming
directory, such as making a request to PAM, but PAM is supposed to set
XDG_RUNTIME_DIR itself anyway and also doesn't exist on Macs, which I
use most of the time.

My configuration isn't actually using XDG_RUNTIME_DIR anyway, so I don't
want to provide the misleading impression that a runtime directory with
proper behaviour conforming to the specification is definitely
available.
2021-09-22 10:27:09 +10:00
Danielle McLean 2018821e9f
Add support for XDG_STATE_HOME 2021-09-22 10:27:08 +10:00
Danielle McLean 3348b8bd19
Add OPAM support 2021-09-15 09:49:19 +10:00
Danielle McLean e2963ca8e9
Add SHLVL display to Starship 2021-07-26 16:41:08 +10:00
Danielle McLean 3b8b77d590
Use canonical argument formats to Taskwarrior 2021-07-19 23:09:43 +10:00
Danielle McLean 8ae8c1149e
Add a Taskwarrior pending count to Starship prompt 2021-07-19 11:05:35 +10:00
Danielle McLean 6b4bc5512e
Alias tree to use lsd's tree mode, for icons! 2021-07-19 11:05:08 +10:00
Danielle McLean dceeff9590
Remove need for XDG_DATA_HOME/zsh/skim.zsh 2021-07-15 16:14:40 +10:00
Danielle McLean 78208004a3
Set the terminal title like pure does (starship doesn't do this) 2021-07-07 15:12:32 +10:00
Danielle McLean df87551b1e
Add support for PHIVE with XDG (by default it uses ~/.phive :c ) 2021-06-05 16:03:35 +10:00
Danielle McLean bb7529ec30
Tweak the formatting for Git, Node, and PHP modules in Starship 2021-05-04 10:25:34 +10:00
Danielle McLean ba59f6e186
Configure Starship's gcloud module 2021-05-04 10:11:46 +10:00
Danielle McLean e2ea885dc8
Add my own tweaks to make Starship look more like Pure 2021-05-04 10:05:54 +10:00
Danielle McLean c213f50a35
Introduce Starship preset for Nerd Font symbols instead of emoji 2021-05-04 10:05:25 +10:00
Danielle McLean a7a24f81f6
feat: use Zinit packages for LS_COLORS, rather than custom setup 2021-05-04 09:57:26 +10:00
Danielle McLean dba0d5ab99
feat: load Starship instead of Pure if it's available 2021-05-04 09:56:51 +10:00