From 17fa2c0a74f0129c622f38879dac9f7d2e3a4aa0 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sat, 11 Feb 2023 16:24:14 -0600 Subject: 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). --- sheldon/.config/profile.d/20-sheldon.sh | 4 ++++ sheldon/.config/sheldon/plugins.toml | 8 -------- sheldon/.config/zsh/.zshrc.d/80-sheldon.zsh | 3 +++ 3 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 sheldon/.config/profile.d/20-sheldon.sh create mode 100644 sheldon/.config/zsh/.zshrc.d/80-sheldon.zsh (limited to 'sheldon/.config') 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) -- cgit v1.2.3-70-g09d2