更新 zsh 配置与插件清单
This commit is contained in:
@@ -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,5 +1,5 @@
|
|||||||
|
---
|
||||||
description: Zsh 及插件
|
description: Zsh 及插件
|
||||||
|
|
||||||
dotfiles:
|
dotfiles:
|
||||||
- source: dotfiles/.zshrc
|
- source: dotfiles/.zshrc
|
||||||
target: ~/.zshrc
|
target: ~/.zshrc
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user