Update upgrade_system to work with .zshrc rework and have case insensitive completions in zsh

This commit is contained in:
Tony Blyler 2022-04-25 11:58:37 -04:00
parent 816c557a77
commit 441ad802e7
2 changed files with 3 additions and 19 deletions

View file

@ -102,6 +102,8 @@ SAVEHIST=10485760
bindkey '^R' history-incremental-search-backward
bindkey -e
zstyle ':completion:*' menu select
# case-insensitive,partial-word and then substring completion
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
bindkey '^[[Z' reverse-menu-complete
export TERM='xterm-256color'

View file

@ -20,7 +20,7 @@ upgrade_system() {
# Debian/Ubuntu
if command -v apt &> /dev/null; then
sudo sh -c 'apt update && apt upgrade'
sudo "$SHELL" -c 'apt update && apt upgrade'
fi
# Fedora
@ -41,24 +41,6 @@ upgrade_system() {
nvim -c 'PaqSync' -c 'sleep 5' -c 'TSUpdateSync' -c 'sleep 5' -c 'qa'
fi
(
for DIR in "$ZSH"/custom/{themes,plugins}/*/; do
(
cd "${DIR}"
[ -d .git ] || exit 0
git pull
)
done
)
(
cd "${HOME}/.tmux"
git pull
if [ -n "${TMUX:-}" ]; then
tmux source-file "${HOME}/.tmux.conf"
fi
)
if command -v fwupdmgr &> /dev/null; then
fwupdmgr refresh
fwupdmgr upgrade