From 304e475b8daae9b16d60ceafd5885cb72e8872a7 Mon Sep 17 00:00:00 2001 From: self Date: Thu, 15 Jun 2023 21:30:06 +0100 Subject: zshrc: added $XDG_DATA_HOME/python/bin to PATH; updated pacman aliases; compinit changes --- zsh/.zshrc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 45d3d7a..057a2ae 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -49,7 +49,7 @@ export ORGD_CDALIAS_PATH="$ORGD_ROOT/sd/cd" export VISUAL="/usr/bin/nvim" export EDITOR="/usr/bin/nvim" -PATH=$PATH:$HOME/.local/share/go/bin:$ORGD_SCR_PATH +PATH=$PATH:$HOME/.local/share/go/bin:$ORGD_SCR_PATH:$HOME/.local/share/python/bin ########## Configuration ############# if [[ ! -d ~/.config/zsh/zsh-autopair ]]; then @@ -77,7 +77,6 @@ while read a c ; do alias "cd$a"="cd $c" done <<< "$(strip-comments "$ORGD_CDALIAS_PATH" | strip-blank)" - # vim / nvim alias vim="nvim" abbrev-alias v="vim" @@ -112,7 +111,8 @@ abbrev-alias b="bat" # other, e.g. updating and other commonly used commands abbrev-alias pu="sudo pacman -Syu" -abbrev-alias pacud="sudo pacman -Syu" +abbrev-alias pm="sudo pacman" +alias packages="pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'" # Source .zshrc-git, which contains all Git commands and aliases @@ -125,12 +125,10 @@ source "$XDG_CONFIG_HOME/zsh/.zshrc-mk" # Source .zshrc-fn, which contains various miscellaneous functions source "$XDG_CONFIG_HOME/zsh/.zshrc-fn" - -# misc -alias pkg-query="pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'" - autoload -Uz compinit compinit +zstyle ':completion:*' menu select +zstyle ':completion::complete:*' gain-privileges 1 # End of lines added by compinstall # Sourcing for zsh -- cgit v1.2.1