mirror of
https://github.com/bertptrs/vimconfig.git
synced 2026-02-09 10:30:31 +01:00
Add python/pip configuration.
This commit is contained in:
@@ -88,3 +88,8 @@ test -f "$XDG_CONFIG_HOME/sqlite3/sqliterc" && alias sqlite3="sqlite3 -init \"$X
|
||||
|
||||
# Set up cargo
|
||||
export CARGO_HOME="$XDG_CACHE_HOME/cargo"
|
||||
|
||||
# Add local binaries to path
|
||||
if [[ -d "$HOME/.local/bin" ]]; then
|
||||
path+="$HOME/.local/bin"
|
||||
fi
|
||||
|
||||
12
zsh/.zshrc
12
zsh/.zshrc
@@ -112,6 +112,18 @@ zstyle :compinstall filename '/home/bert/.zshrc'
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
# pip zsh completion start
|
||||
function _pip_completion {
|
||||
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
|
||||
|
||||
##########################
|
||||
## History configuration #
|
||||
##########################
|
||||
|
||||
Reference in New Issue
Block a user