Скрипт для быстрой установки

This commit is contained in:
Andrei Astafev 2023-04-16 22:02:09 +03:00
parent ab88a647c0
commit ce3d65d15b
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,9 @@
# Быстрая установка
```sh
sh -c "$(curl -fsSL https://git.246060.ru/config/zsh/raw/branch/master/install.sh)"
```
# Установка
Установить оболочку [Zsh](https://www.zsh.org) и git:

18
install.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/sh
set -e
sudo apt-get install git zsh
git clone https://git.246060.ru/f1x1t/zshrc $HOME/.config/zsh
cat <<EOF > $HOME/.zshenv
# Загрузка конфигурации из каталога $ZDOTDIR
export ZDOTDIR=$HOME/.config/zsh
source $ZDOTDIR/.zshenv
EOF
sudo usermod -s $(which zsh) $(whoami)
mkdir -p ~/.local/share/fonts
curl -fSL -o "$HOME/.local/share/fonts/Anonymice Nerd Font Complete.ttf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/AnonymousPro/complete/Anonymice%20Nerd%20Font%20Complete.ttf
curl -fSL -o "$HOME/.local/share/fonts/Anonymice Nerd Font Complete Mono.ttf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/AnonymousPro/complete/Anonymice%20Nerd%20Font%20Complete%20Mono.ttf