diff --git a/install.sh b/install.sh index ab246fc..0d8739c 100755 --- a/install.sh +++ b/install.sh @@ -52,6 +52,7 @@ installIfAvailable git installIfAvailable latexmk installIfAvailable gem installIfAvailable npm +installIfAvailable python if commandAvailable weechat; then echo "Setting up weechat settings…" diff --git a/python/.config/pip/pip.conf b/python/.config/pip/pip.conf new file mode 100644 index 0000000..fb9b698 --- /dev/null +++ b/python/.config/pip/pip.conf @@ -0,0 +1,2 @@ +[install] +user=yes diff --git a/zsh/.zshenv b/zsh/.zshenv index 54bc3bb..b95d3b3 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -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 diff --git a/zsh/.zshrc b/zsh/.zshrc index 9ca693b..c63638e 100644 --- a/zsh/.zshrc +++ b/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 # ##########################