Замена wget на curl

This commit is contained in:
Andrei Astafev 2023-04-17 13:17:02 +03:00
parent 484a4b943f
commit c0c1920574
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ ZINIT[ZCOMPDUMP_PATH]="$ZSH_CACHE_DIR/zcompdump"
ZPFX="$ZSH_CACHE_DIR/polaris" ZPFX="$ZSH_CACHE_DIR/polaris"
if [ ! -d "${ZINIT[HOME_DIR]}" ]; then if [ ! -d "${ZINIT[HOME_DIR]}" ]; then
wget -q -O - "https://github.com/zdharma-continuum/zinit/archive/refs/tags/v${ZINIT[VERSION]}.tar.gz" | tar zxf - -C "$ZSH_CACHE_DIR" curl -sL "https://github.com/zdharma-continuum/zinit/archive/refs/tags/v${ZINIT[VERSION]}.tar.gz" | tar zxf - -C "$ZSH_CACHE_DIR"
sed -i 's/.*zinit-self-update -q//' "${ZINIT[HOME_DIR]}/zinit-autoload.zsh" sed -i 's/.*zinit-self-update -q//' "${ZINIT[HOME_DIR]}/zinit-autoload.zsh"
zcompile "${ZINIT[HOME_DIR]}/zinit.zsh" zcompile "${ZINIT[HOME_DIR]}/zinit.zsh"
fi fi

View File

@ -4,7 +4,7 @@
# где отсутствует пакет kitty-terminfo # где отсутствует пакет kitty-terminfo
fix-kitty-terminal-support() { fix-kitty-terminal-support() {
mkdir -p $HOME/.terminfo/x mkdir -p $HOME/.terminfo/x
wget -qO - https://github.com/kovidgoyal/kitty/raw/master/terminfo/x/xterm-kitty > $HOME/.terminfo/x/xterm-kitty curl -fsSL https://github.com/kovidgoyal/kitty/raw/master/terminfo/x/xterm-kitty > $HOME/.terminfo/x/xterm-kitty
} }
# Настройка mc для работы в терминале kitty # Настройка mc для работы в терминале kitty

View File

@ -2,13 +2,13 @@
set -e set -e
sudo apt-get install git zsh sudo apt-get install git zsh curl
git clone https://git.246060.ru/config/zsh $HOME/.config/zsh git clone https://git.246060.ru/config/zsh $HOME/.config/zsh
cat <<EOF > $HOME/.zshenv cat <<EOF > $HOME/.zshenv
# Загрузка конфигурации из каталога $ZDOTDIR # Загрузка конфигурации из каталога \$ZDOTDIR
export ZDOTDIR=$HOME/.config/zsh export ZDOTDIR=\$HOME/.config/zsh
source $ZDOTDIR/.zshenv source \$ZDOTDIR/.zshenv
EOF EOF
sudo usermod -s $(which zsh) $(whoami) sudo usermod -s $(which zsh) $(whoami)