Added ZSH plugins

This commit is contained in:
Fabio Scotto di Santolo
2025-07-15 23:24:34 +02:00
parent c76d6eef8f
commit a6a82b2e67
5 changed files with 13 additions and 15 deletions

6
.gitmodules vendored
View File

@@ -19,3 +19,9 @@
[submodule "tmux/.tmux/plugins/tmux"]
path = tmux/.tmux/plugins/tmux
url = https://github.com/catppuccin/tmux.git
[submodule "zsh/.oh-my-zsh/custom/plugins/zsh-autosuggestions"]
path = zsh/.oh-my-zsh/custom/plugins/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions.git
[submodule "zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"]
path = zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting.git

View File

@@ -0,0 +1,3 @@
# Add your own custom plugins in the custom/plugins directory. Plugins placed
# here will override ones with the same name in the main plugins directory.
# See: https://github.com/ohmyzsh/ohmyzsh/wiki/Customization#overriding-and-adding-plugins

View File

@@ -79,8 +79,10 @@ plugins=(
gitignore
mise
zoxide
zsh-autosuggestions
zsh-interactive-cd
zsh-navigation-tools
zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
@@ -118,18 +120,3 @@ fpath=(~/.zsh $fpath)
autoload run-help
autoload -Uz compinit && compinit -u
case $(uname -s) in
"Darwin")
export ZSH_HIGHLIGHT_DIR=/opt/homebrew/share/zsh-syntax-highlighting
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters
;;
"Linux")
export ZSH_HIGHLIGHT_DIR=/usr/share/zsh-syntax-highlighting
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/share/zsh-syntax-highlighting/highlighters
export ZSH_AUTOSUGGESTIONS_DIR=/usr/share/zsh-autosuggestions
;;
esac
source "$ZSH_HIGHLIGHT_DIR/zsh-syntax-highlighting.zsh"
source "$ZSH_AUTOSUGGESTIONS_DIR/zsh-autosuggestions.zsh"