Замена 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"
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"
zcompile "${ZINIT[HOME_DIR]}/zinit.zsh"
fi

View File

@ -4,7 +4,7 @@
# где отсутствует пакет kitty-terminfo
fix-kitty-terminal-support() {
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

View File

@ -2,13 +2,13 @@
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
cat <<EOF > $HOME/.zshenv
# Загрузка конфигурации из каталога $ZDOTDIR
export ZDOTDIR=$HOME/.config/zsh
source $ZDOTDIR/.zshenv
# Загрузка конфигурации из каталога \$ZDOTDIR
export ZDOTDIR=\$HOME/.config/zsh
source \$ZDOTDIR/.zshenv
EOF
sudo usermod -s $(which zsh) $(whoami)