Update upgrade_system to work with .zshrc rework and have case insensitive completions in zsh
This commit is contained in:
parent
816c557a77
commit
441ad802e7
2 changed files with 3 additions and 19 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue