From a9a9b0fe67ddb7c334b4ed6d68b0c791c28b2583 Mon Sep 17 00:00:00 2001 From: hl Date: Fri, 15 Nov 2024 15:26:44 +0800 Subject: [PATCH] update --- .zshrc | 8 +++----- init.sh | 18 +----------------- packages-base | 1 - 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/.zshrc b/.zshrc index 4adacf5..4169eef 100644 --- a/.zshrc +++ b/.zshrc @@ -29,13 +29,11 @@ source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh -bindkey -M menuselect "^[" undo -bindkey -M menuselect "\r" .accept-line -bindkey -M menuselect "^[[D" .accept-line -bindkey -M menuselect "^[[C" .accept-line +bindkey "^I" menu-select +bindkey -M menuselect "^I" menu-complete +bindkey -M menuselect "$terminfo[kcbt]" reverse-menu-complete bindkey -M menuselect "^A" .accept-line bindkey -M menuselect "^E" .accept-line -bindkey -M menuselect "^I" .accept-line # The following lines were added by compinstall zstyle ':completion:*' menu select zstyle ':completion::complete:*' gain-privileges 1 diff --git a/init.sh b/init.sh index 3e648d1..cd2834d 100755 --- a/init.sh +++ b/init.sh @@ -98,21 +98,6 @@ Signed-By: /etc/apt/trusted.gpg.d/proxmox-release-$OS_CODE.gpg $command install -y ca-certificates curl gnupg lsb-release zsh - if [[ $OS_VERSION=="12" ]]; then - OS_VERSION="Testing" - elif [[ $OS_VERSION=="13" ]]; then - OS_VERSION="Unstable" - fi - - echo -e "Types: deb -URIs: http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-completions/Debian_$OS_VERSION/ -Suites: / -Signed-By: /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-completions.gpg -" | tee /etc/apt/sources.list.d/zsh-completions.sources - curl -fsSL "https://download.opensuse.org/repositories/shells:zsh-users:zsh-completions/Debian_$OS_VERSION/Release.key" | \ - gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-completions.gpg > /dev/null - - if [ $FOR_PVE -eq 0 ]; then echo -e "Types: deb URIs: $DOCKER_URL @@ -152,8 +137,7 @@ Architectures: $OS_ARCH sed -i -E "s/#compinit/compinit/g" $HOME/.zshrc sed -i -E "s/.*zoxide.*//g" $HOME/.zshrc else - git -C /usr/share clone --depth 1 https://git.tink.ltd:8443/tink/zsh-autocomplete.git 2>/dev/null || \ - git -C /usr/share/zsh-autocomplete pull + $SCRIPTPATH/install-release.sh -r marlonrichert/zsh-autocomplete -k tarball -p /usr/share/zsh-autocomplete -d 0 -o autocomplete.tar.gz $SCRIPTPATH/install-release.sh -r ajeetdsouza/zoxide -m x86_64-unknown -p /usr/local/bin -n zoxide -f fi } diff --git a/packages-base b/packages-base index 0a81aa3..3261e8e 100644 --- a/packages-base +++ b/packages-base @@ -18,4 +18,3 @@ zsh-syntax-highlighting iperf3 mosh screen -zsh-completions