Skip to content

Commit b868a03

Browse files
committed
fix(zsh): use poetry completions from specific file
1 parent d295853 commit b868a03

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

zsh/.zshrc

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
# Starship prompt
2-
eval "$(starship init zsh)"
3-
41
# Oh My Zsh core
52
export ZSH="$HOME/.oh-my-zsh"
63
plugins=(git gh)
74
source $ZSH/oh-my-zsh.sh
85

6+
# Starship prompt
7+
eval "$(starship init zsh)"
8+
99
# GPG: set TTY only if gpg is installed
1010
if command -v gpg >/dev/null 2>&1; then
1111
export GPG_TTY=$(tty)
1212
fi
1313

14-
# Optional: set default editor to VS Code if installed
15-
if command -v code >/dev/null 2>&1; then
16-
export EDITOR="code"
17-
fi
18-
1914
# Optional: enable Warp shell block title if running in Warp
2015
if [[ "$TERM_PROGRAM" == "WarpTerminal" ]]; then
2116
export WARP_ENABLE_SHELL_BLOCK_TITLE=true
@@ -51,9 +46,9 @@ if command -v pyenv >/dev/null 2>&1; then
5146
eval "$(pyenv init -)"
5247
fi
5348

54-
# Poetry completions (if poetry is installed)
49+
# Poetry completions (safe and clean)
5550
if command -v poetry >/dev/null 2>&1; then
56-
eval "$(poetry completions zsh)"
51+
fpath+=("${ZDOTDIR:-$HOME}/.local/share/pypoetry/completions/zsh")
5752
fi
5853

5954
# Rust (if installed)

0 commit comments

Comments
 (0)