mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
wip: zsh
This commit is contained in:
parent
002fad13df
commit
1010e8150f
7 changed files with 376 additions and 0 deletions
22
modules/programs/zsh/autocomplete.zsh
Normal file
22
modules/programs/zsh/autocomplete.zsh
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# ds autocomplete (if installed)
|
||||
if command -v ds &> /dev/null; then
|
||||
eval "$(_DS_COMPLETE=zsh_source ds)"
|
||||
fi
|
||||
|
||||
# Additional tool completions
|
||||
|
||||
# fzf integration for better history search (fish-like experience)
|
||||
if command -v fzf &> /dev/null; then
|
||||
# Use fzf for Ctrl+R history search
|
||||
source <(fzf --zsh 2>/dev/null || true)
|
||||
fi
|
||||
|
||||
# direnv integration
|
||||
if command -v direnv &> /dev/null; then
|
||||
eval "$(direnv hook zsh)"
|
||||
fi
|
||||
|
||||
# zoxide integration (if installed, provides better cd)
|
||||
if command -v zoxide &> /dev/null; then
|
||||
eval "$(zoxide init zsh)"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue