Замена wget на curl
This commit is contained in:
parent
484a4b943f
commit
c0c1920574
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user