From a2f3ceb6b5a223da09494baf72e13af6770e37ec Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 26 Mar 2026 16:11:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(zsh):=20=E5=B0=86=20PATH=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=8F=90=E5=8F=96=E5=88=B0=20.zshenv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.zshenv | 3 +++ home/.zshrc | 3 --- modules/zsh.py | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 home/.zshenv diff --git a/home/.zshenv b/home/.zshenv new file mode 100644 index 0000000..e0387d9 --- /dev/null +++ b/home/.zshenv @@ -0,0 +1,3 @@ +# PATH +export PATH="$HOME/go/bin:$PATH" +export PATH="$HOME/.bun/bin:$PATH" diff --git a/home/.zshrc b/home/.zshrc index 3ab9b24..e38e217 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -11,9 +11,6 @@ source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -# bun -export PATH="$HOME/.bun/bin:$PATH" - # mise if command -v mise &> /dev/null; then eval "$(mise activate zsh)" diff --git a/modules/zsh.py b/modules/zsh.py index 9153e6d..d9c1a37 100644 --- a/modules/zsh.py +++ b/modules/zsh.py @@ -11,6 +11,10 @@ class ZshModule(Module): def files(self): return { + f"/home/{self.user}/.zshenv": File( + source_file="./home/.zshenv", + owner=self.user, + ), f"/home/{self.user}/.zshrc": File( source_file="./home/.zshrc", owner=self.user,