Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions wtp/completion.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env zsh

# wtp completion - loads after compinit
if command -v wtp >/dev/null 2>&1; then
eval "$(wtp completion zsh)"
# Use absolute path to avoid PATH resolution issues during shell reload
if [[ -x "$HOME/bin/wtp" ]]; then
eval "$("$HOME/bin/wtp" completion zsh 2>/dev/null)"
elif command -v wtp >/dev/null 2>&1; then
eval "$(wtp completion zsh 2>/dev/null)"
fi
7 changes: 5 additions & 2 deletions zsh/wtp.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

# Initialize wtp shell hook for cd functionality
# Note: completion is handled in wtp/completion.zsh after compinit
if command -v wtp >/dev/null 2>&1; then
eval "$(wtp hook zsh)"
# Use absolute path to avoid PATH resolution issues during shell reload
if [[ -x "$HOME/bin/wtp" ]]; then
eval "$("$HOME/bin/wtp" hook zsh 2>/dev/null)"
elif command -v wtp >/dev/null 2>&1; then
eval "$(wtp hook zsh 2>/dev/null)"
fi