From ce3d65d15bb3f8172b990f3f23a359af9a4763ec Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sun, 16 Apr 2023 22:02:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B1=D1=8B=D1=81=D1=82=D1=80=D0=BE=D0=B9=20?= =?UTF-8?q?=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ install.sh | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 install.sh diff --git a/README.md b/README.md index 402fd07..ee62dab 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..2ffee40 --- /dev/null +++ b/install.sh @@ -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 < $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