refactor(zsh): 将 PATH 配置提取到 .zshenv
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# PATH
|
||||
export PATH="$HOME/go/bin:$PATH"
|
||||
export PATH="$HOME/.bun/bin:$PATH"
|
||||
@@ -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)"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user