summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorself <george@gabbott.dev>2023-06-15 21:30:06 +0100
committerself <george@gabbott.dev>2023-06-15 21:30:06 +0100
commit304e475b8daae9b16d60ceafd5885cb72e8872a7 (patch)
tree924203e8886ead23d2145ca47889e97872e9bee1
parentfa7365b3d0b107be619e9f9d14e91c98881eaa3d (diff)
zshrc: added $XDG_DATA_HOME/python/bin to PATH; updated pacman aliases; compinit changes
-rw-r--r--zsh/.zshrc12
1 files 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