Move the completion file to the cache dir
This commit is contained in:
parent
f71325a367
commit
71b5995121
3 changed files with 5 additions and 12 deletions
|
@ -1,15 +1,7 @@
|
||||||
# pip zsh completion start
|
# create the missing directories
|
||||||
function _pip_completion {
|
[ ! -d "$COMPDIR" ] && mkdir -p "$COMPDIR"
|
||||||
local words cword
|
|
||||||
read -Ac words
|
|
||||||
read -cn cword
|
|
||||||
reply=( $( COMP_WORDS="$words[*]" \
|
|
||||||
COMP_CWORD=$(( cword-1 )) \
|
|
||||||
PIP_AUTO_COMPLETE=1 $words[1] ) )
|
|
||||||
}
|
|
||||||
compctl -K _pip_completion pip
|
|
||||||
# pip zsh completion end
|
|
||||||
|
|
||||||
|
# transmission
|
||||||
if hash transmission-daemon 2>/dev/null; then
|
if hash transmission-daemon 2>/dev/null; then
|
||||||
transmission-daemon
|
transmission-daemon
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -8,7 +8,7 @@ bindkey "^[3;5~" delete-char
|
||||||
|
|
||||||
# Command completion
|
# Command completion
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
compinit
|
compinit -d "$COMPDIR/.zcompdump"
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
if [ -f "/usr/bin/liquidprompt" ]; then
|
if [ -f "/usr/bin/liquidprompt" ]; then
|
||||||
|
|
1
.zshenv
1
.zshenv
|
@ -7,6 +7,7 @@ export HISTSIZE=5000
|
||||||
export SAVEHIST=100000
|
export SAVEHIST=100000
|
||||||
|
|
||||||
# CLI config
|
# CLI config
|
||||||
|
export COMPDIR="$HOME/.cache/zsh"
|
||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export EDITOR='vim'
|
export EDITOR='vim'
|
||||||
export PAGER='less'
|
export PAGER='less'
|
||||||
|
|
Loading…
Reference in a new issue