File tree Expand file tree Collapse file tree
third_party/github.com/Valodim/zsh-capture-completion Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ setopt rcquotes
2222PROMPT=
2323
2424# load completion system
25+ # carapace-bridge: use dedicated dump path and source user .zshrc for fpath changes
2526oldfpath="$fpath"
26- autoload -U compinit && compinit
27- compinit -d "${CARAPACE_BRIDGE_CONFIG_HOME:-$HOME/.config}/carapace/bridge/zsh/.zcompdump_capture"
28- source "${CARAPACE_BRIDGE_CONFIG_HOME:-$HOME/.config}/carapace/bridge/zsh/.zshrc"
27+ autoload -U compinit && compinit -d "${CARAPACE_BRIDGE_CONFIG_HOME:-$HOME/.config}/carapace/bridge/zsh/.zcompdump_capture"
28+ source "${CARAPACE_BRIDGE_CONFIG_HOME:-$HOME/.config}/carapace/bridge/zsh/.zshrc"
2929[[ "$oldfpath" != "$fpath" ]] && compinit # second call to adopt any changes to fpath
3030
3131
@@ -138,4 +138,5 @@ while zpty -r z; do :; done | while IFS= read -r line; do
138138 (( tog )) && echo -E - $line
139139done
140140
141- return 2
141+ # carapace-bridge: was `return 2` upstream, which always exited non-zero and broke ActionExecCommand
142+ return 0
You can’t perform that action at this time.
0 commit comments