diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-02-11 16:24:14 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-02-11 16:24:14 -0600 |
commit | 17fa2c0a74f0129c622f38879dac9f7d2e3a4aa0 (patch) | |
tree | 90f3bd4ddadaf982b0dfb8665ae04bf6982b3c8a /sheldon/.config | |
parent | 63393e63d474b9197d484edaa2d82c02aa865aa1 (diff) |
feat: split `.zshrc` to individual files
split `$XDG_CONFIG_HOME/zsh/.zshrc` up into
`$XDG_CONFIG_HOME/zsh/.zshrc.d/*`. This allows for better management
and prioritization between different tool's env. Similar to what was
done to `.profile` in e712243 (feat: split `.profile` to individual
files, 2023-02-10).
Diffstat (limited to 'sheldon/.config')
-rw-r--r-- | sheldon/.config/profile.d/20-sheldon.sh | 4 | ||||
-rw-r--r-- | sheldon/.config/sheldon/plugins.toml | 8 | ||||
-rw-r--r-- | sheldon/.config/zsh/.zshrc.d/80-sheldon.zsh | 3 |
3 files changed, 7 insertions, 8 deletions
diff --git a/sheldon/.config/profile.d/20-sheldon.sh b/sheldon/.config/profile.d/20-sheldon.sh new file mode 100644 index 0000000..bc0e4f5 --- /dev/null +++ b/sheldon/.config/profile.d/20-sheldon.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +SHELDON_PROFILE="$(uname -r 2>/dev/null | rev | cut -d- -f1 | rev)" +export SHELDON_PROFILE diff --git a/sheldon/.config/sheldon/plugins.toml b/sheldon/.config/sheldon/plugins.toml index fa66ae1..a1868b2 100644 --- a/sheldon/.config/sheldon/plugins.toml +++ b/sheldon/.config/sheldon/plugins.toml @@ -12,10 +12,6 @@ github = 'romkatv/zsh-defer' [plugins.zsh-vi-mode] github = "jeffreytse/zsh-vi-mode" -[plugins.zsh-wsl] -local = '~/.local/share/wsl/shell' -profiles = ["WSL2"] - [plugins.zsh-autosuggestions] github = "zsh-users/zsh-autosuggestions" use = ["{{ name }}.zsh"] @@ -50,7 +46,3 @@ apply = ["defer"] [plugins.zsh-fzf-history-search] github = "joshskidmore/zsh-fzf-history-search" apply = ["defer"] - -[plugins.compinit] -local = '~/.local/share/zsh/plugins' -apply = ["defer"] diff --git a/sheldon/.config/zsh/.zshrc.d/80-sheldon.zsh b/sheldon/.config/zsh/.zshrc.d/80-sheldon.zsh new file mode 100644 index 0000000..2ced1c8 --- /dev/null +++ b/sheldon/.config/zsh/.zshrc.d/80-sheldon.zsh @@ -0,0 +1,3 @@ +#!/bin/zsh + +source <(sheldon source) |