更新 zsh 配置与插件清单

This commit is contained in:
2026-03-25 15:37:09 +08:00
parent 669edf8dc3
commit 92c1f26667
3 changed files with 21 additions and 9 deletions
+16 -6
View File
@@ -1,8 +1,18 @@
# Oh My Zsh # Oh My Zsh
export ZSH="$HOME/.oh-my-zsh" ZSH=/usr/share/oh-my-zsh/
ZSH_THEME="robbyrussell" ZSH_THEME="ys"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting) plugins=(git)
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR
fi
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
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 # mise
if command -v mise &> /dev/null; then if command -v mise &> /dev/null; then
@@ -15,6 +25,6 @@ if command -v zoxide &> /dev/null; then
fi fi
# Aliases # Aliases
alias ls='ls --color=auto' alias cd="z"
alias ll='ls -lah' alias cdi="zi"
alias cd='z' alias rm="trash-put"
+1 -1
View File
@@ -1,5 +1,5 @@
---
description: Zsh 及插件 description: Zsh 及插件
dotfiles: dotfiles:
- source: dotfiles/.zshrc - source: dotfiles/.zshrc
target: ~/.zshrc target: ~/.zshrc
+4 -2
View File
@@ -1,6 +1,8 @@
---
packages: packages:
- zsh - fzf-tab-git
- zsh-completions
- oh-my-zsh-git - oh-my-zsh-git
- zsh
- zsh-autosuggestions - zsh-autosuggestions
- zsh-completions
- zsh-syntax-highlighting - zsh-syntax-highlighting