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 '^R' history-incremental-search-backward
bindkey -e bindkey -e
zstyle ':completion:*' menu select 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 bindkey '^[[Z' reverse-menu-complete
export TERM='xterm-256color' export TERM='xterm-256color'

View file

@ -20,7 +20,7 @@ upgrade_system() {
# Debian/Ubuntu # Debian/Ubuntu
if command -v apt &> /dev/null; then if command -v apt &> /dev/null; then
sudo sh -c 'apt update && apt upgrade' sudo "$SHELL" -c 'apt update && apt upgrade'
fi fi
# Fedora # Fedora
@ -41,24 +41,6 @@ upgrade_system() {
nvim -c 'PaqSync' -c 'sleep 5' -c 'TSUpdateSync' -c 'sleep 5' -c 'qa' nvim -c 'PaqSync' -c 'sleep 5' -c 'TSUpdateSync' -c 'sleep 5' -c 'qa'
fi 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 if command -v fwupdmgr &> /dev/null; then
fwupdmgr refresh fwupdmgr refresh
fwupdmgr upgrade fwupdmgr upgrade