feat(shells): zoxide cd replacement in all three shells + guarded system-wide oh-my-zsh source
This commit is contained in:
@@ -12,3 +12,6 @@ PS1='[\u@\h \W]\$ '
|
||||
# peon-ping quick controls
|
||||
alias peon="bash /home/dank/.claude/hooks/peon-ping/peon.sh"
|
||||
[ -f /home/dank/.claude/hooks/peon-ping/completions.bash ] && source /home/dank/.claude/hooks/peon-ping/completions.bash
|
||||
|
||||
# zoxide replaces cd in interactive shells; plain paths still pass through
|
||||
command -v zoxide >/dev/null && eval "$(zoxide init bash --cmd cd)"
|
||||
|
||||
@@ -8,3 +8,8 @@ source /usr/share/cachyos-fish-config/cachyos-config.fish
|
||||
|
||||
# peon-ping quick controls
|
||||
function peon; bash /home/dank/.claude/hooks/peon-ping/peon.sh $argv; end
|
||||
|
||||
# zoxide replaces cd in interactive shells; plain paths still pass through
|
||||
if command -q zoxide
|
||||
zoxide init fish --cmd cd | source
|
||||
end
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
source /usr/share/cachyos-zsh-config/cachyos-config.zsh
|
||||
|
||||
# oh-my-zsh (system-wide package; no-ops where not installed)
|
||||
if [ -f /usr/share/oh-my-zsh/oh-my-zsh.sh ]; then
|
||||
export ZSH=/usr/share/oh-my-zsh
|
||||
source "$ZSH/oh-my-zsh.sh"
|
||||
fi
|
||||
|
||||
# zoxide replaces cd in interactive shells; plain paths still pass through
|
||||
command -v zoxide >/dev/null && eval "$(zoxide init zsh --cmd cd)"
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user