Add Oh My Zsh as git submodule with enhanced plugin configuration

- Add Oh My Zsh as submodule at zsh/oh-my-zsh
- Update ZSH path to use dotfiles submodule
- Add 14 useful plugins including autosuggestions, syntax highlighting, docker, tmux, and z
- Configure Oh My Zsh settings (disable auto-update, enable correction, etc.)
- Add plugin customizations for autosuggestions and history-substring-search
- Integrate Spaceship prompt with Oh My Zsh

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jens Luedicke
2025-10-15 13:43:49 +02:00
parent 0b32452a6c
commit 04c1a15293
3 changed files with 57 additions and 5 deletions

3
.gitmodules vendored
View File

@@ -1,3 +1,6 @@
[submodule "zsh/spaceship-prompt"]
path = zsh/spaceship-prompt
url = https://github.com/spaceship-prompt/spaceship-prompt.git
[submodule "zsh/oh-my-zsh"]
path = zsh/oh-my-zsh
url = https://github.com/ohmyzsh/ohmyzsh.git

1
zsh/oh-my-zsh Submodule

Submodule zsh/oh-my-zsh added at d1c04d8a33

58
zshrc
View File

@@ -48,11 +48,7 @@ fts() {
session=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | fzf --preview "tmux list-windows -t {} | column -t" --preview-window=down:20%) && tmux switch-client -t "$session"
}
# Spaceship Prompt
source ~/.dotfiles/zsh/spaceship-prompt/spaceship.zsh-theme
source ~/.dotfiles/zsh/spaceship.zsh
# Enhanced Zsh Prompt Configuration (replaced by Spaceship)
# Enhanced Zsh Prompt Configuration (now handled by Oh My Zsh + Spaceship)
# Enable prompt substitution and colors
# setopt PROMPT_SUBST
# autoload -U colors && colors
@@ -128,4 +124,56 @@ source ~/.dotfiles/zsh/spaceship.zsh
# fi
# }
# Oh My Zsh configuration
export ZSH="$HOME/.dotfiles/zsh/oh-my-zsh"
# Use Spaceship prompt (already configured as submodule)
# ZSH_THEME is not needed when using external prompt like Spaceship
ZSH_THEME=""
# Oh My Zsh settings
CASE_SENSITIVE="false"
HYPHEN_INSENSITIVE="true"
DISABLE_AUTO_UPDATE="true" # Managed via git submodule
DISABLE_UPDATE_PROMPT="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="yyyy-mm-dd"
# Plugins
plugins=(
git
docker
docker-compose
tmux
z
command-not-found
history-substring-search
colored-man-pages
extract
sudo
cp
dirhistory
zsh-autosuggestions
zsh-syntax-highlighting # Must be last
)
source $ZSH/oh-my-zsh.sh
# Load Spaceship prompt
source ~/.dotfiles/zsh/spaceship-prompt/spaceship.zsh
source ~/.dotfiles/zsh/spaceship.zsh
# Plugin customizations
# zsh-autosuggestions
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
# Key bindings for history-substring-search
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
source /home/jenlue/.config/broot/launcher/bash/br