Initial commit. Functional zshrc config setup.

This commit is contained in:
2026-01-25 10:39:50 +01:00
parent 2c6b7c7a20
commit de32ca6894
9 changed files with 240 additions and 0 deletions

7
zsh/fzf.zsh Normal file
View File

@@ -0,0 +1,7 @@
if [ -f /usr/share/fzf/shell/key-bindings.zsh ]; then
source /usr/share/fzf/shell/key-bindings.zsh
elif [ -f /usr/share/doc/fzf/examples/key-bindings.zsh ]; then
source /usr/share/doc/fzf/examples/key-bindings.zsh
elif [ -f ~/.fzf/shell/key-bindings.zsh ]; then
source ~/.fzf/shell/key-bindings.zsh
fi

7
zsh/history.zsh Normal file
View File

@@ -0,0 +1,7 @@
HISTSIZE=100000
SAVEHIST=100000
setopt SHARE_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt INC_APPEND_HISTORY

13
zsh/keybindings.zsh Normal file
View File

@@ -0,0 +1,13 @@
bindkey -e
# Ctrl + Arrow
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
# Ctrl + Backspace / Delete
bindkey '^H' backward-kill-word
bindkey '^[[3;5~' kill-word
# Alt + Delete
bindkey -M emacs '^[[3;3~' kill-word
bindkey "^[[3~" delete-char

3
zsh/nvm.zsh Normal file
View File

@@ -0,0 +1,3 @@
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

3
zsh/plugins.zsh Normal file
View File

@@ -0,0 +1,3 @@
# Optional: autosuggestions
# Uncomment the lines below to enable command suggestions
# source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

19
zsh/zshrc Normal file
View File

@@ -0,0 +1,19 @@
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="${ZSH_THEME:-clean}"
plugins=(
git
zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
# Modular config
source ~/.zsh/keybindings.zsh
source ~/.zsh/history.zsh
source ~/.zsh/fzf.zsh
source ~/.zsh/plugins.zsh
# Optional local overrides (not committed)
[ -f ~/.zshrc.local ] && source ~/.zshrc.local