Корректировка zsh
This commit is contained in:
parent
de926c6987
commit
41b6cfbfb3
42
README.md
42
README.md
@ -1,23 +1,49 @@
|
|||||||
# Окружение рабочего стола
|
# Окружение рабочего стола
|
||||||
|
|
||||||
Установщик софта и визуала.
|
Набор скриптов для развёртывания привычной рабочей среды на Ubuntu.
|
||||||
Используется для развёртывания привычной рабочей среды на Ubuntu.
|
|
||||||
|
|
||||||
Для установки всего софта выполнить команду:
|
## Полная установка
|
||||||
|
|
||||||
|
Если установлен `git`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
git clone git@git.anthonyaxenov.ru:anthony/my-env.git --depth=1
|
||||||
|
cd my-env
|
||||||
sudo ./start.sh
|
sudo ./start.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Команда обработает все `*.sh`-скрипты из [`/install`](/install) по порядку.
|
Если не установлен `git`
|
||||||
|
|
||||||
Если весь софт не нужен, то следует обращаться к этим скриптам по отдельности:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
./install/050-syncthing.sh
|
wget -qO - http://git.anthonyaxenov.ru/anthony/my-env/archive/master.tar.gz | tar -zxf -
|
||||||
|
cd my-env
|
||||||
|
sudo ./start.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Также можно установить визуальное оформление (**только в среде MATE**):
|
Скрипт `start.sh` обработает все `*.sh`-скрипты из [`/install`](/install) по порядку.
|
||||||
|
|
||||||
|
## Частичная установка
|
||||||
|
|
||||||
|
Без полного развёртывания репозитория
|
||||||
|
|
||||||
|
```shell
|
||||||
|
wget -qO - http://git.anthonyaxenov.ru/anthony/my-env/raw/branch/master/install/000-apt.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
После полного развёртывания репозитория (см. полную установку):
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cd my-env
|
||||||
|
sudo ./install/000-apt.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## Тема оформления (только MATE)
|
||||||
|
|
||||||
|
Также можно установить визуальное оформление:
|
||||||
* тема: [Budgie Desktop Dark Theme](https://www.pling.com/p/1276879)
|
* тема: [Budgie Desktop Dark Theme](https://www.pling.com/p/1276879)
|
||||||
* икoнки: [Papirus](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/)
|
* икoнки: [Papirus](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/)
|
||||||
* курсоры: [Bridge](https://www.mate-look.org/s/Mate/p/999983/), [Capitaine Cursors](https://www.gnome-look.org/p/1148692/)
|
* курсоры: [Bridge](https://www.mate-look.org/s/Mate/p/999983/), [Capitaine Cursors](https://www.gnome-look.org/p/1148692/)
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo ./theme/install.sh
|
||||||
|
```
|
||||||
|
@ -17,10 +17,6 @@ snapi() {
|
|||||||
if !installed snapd; then
|
if !installed snapd; then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y --autoremove snapd gnome-software-plugin-snap
|
sudo apt install -y --autoremove snapd gnome-software-plugin-snap
|
||||||
# snapi core
|
|
||||||
# snapi snapd
|
|
||||||
else
|
|
||||||
snap refresh core
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
snapi snap-store
|
snapi snap-store
|
||||||
|
@ -1,8 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. "../src/01-common.sh" || exit 5
|
echo
|
||||||
title "Installing zsh + oh-my-zsh"
|
echo "==============================================="
|
||||||
|
echo "Installing zsh + oh-my-zsh"
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
apti zsh
|
installed() {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
if ! installed git || ! installed curl; then
|
||||||
|
echo "ERROR: you need git and curl to be installed!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo apt install -y --autoremove zsh
|
||||||
# sudo chsh -s $(which zsh)
|
# sudo chsh -s $(which zsh)
|
||||||
|
|
||||||
# Based on:
|
# Based on:
|
||||||
@ -12,16 +24,16 @@ apti zsh
|
|||||||
# https://gist.github.com/dogrocker/1efb8fd9427779c827058f873b94df95
|
# https://gist.github.com/dogrocker/1efb8fd9427779c827058f873b94df95
|
||||||
# https://linuxhint.com/install_zsh_shell_ubuntu_1804/
|
# https://linuxhint.com/install_zsh_shell_ubuntu_1804/
|
||||||
|
|
||||||
echo ""
|
echo
|
||||||
echo "1. Installing oh-my-zsh..."
|
echo "1. Installing oh-my-zsh..."
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
|
|
||||||
echo ""
|
echo
|
||||||
echo "2. Installing powerlevel9k theme (legacy)..."
|
echo "2. Installing powerlevel9k theme (legacy)..."
|
||||||
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
|
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
|
||||||
sed -i 's@^ZSH_THEME=.*$@ZSH_THEME="powerlevel9k/powerlevel9k"@g' ~/.zshrc
|
sed -i 's@^ZSH_THEME=.*$@ZSH_THEME="powerlevel9k/powerlevel9k"@g' ~/.zshrc
|
||||||
|
|
||||||
echo ""
|
echo
|
||||||
echo "3. Installing powerline fonts..."
|
echo "3. Installing powerline fonts..."
|
||||||
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
|
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
|
||||||
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
|
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
|
||||||
@ -31,11 +43,12 @@ fc-cache -vf ~/.local/share/fonts/
|
|||||||
mkdir -p ~/.config/fontconfig/conf.d/
|
mkdir -p ~/.config/fontconfig/conf.d/
|
||||||
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
|
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
|
||||||
|
|
||||||
echo ""
|
echo
|
||||||
echo "4. Installing autosuggestions and syntax highlighting..."
|
echo "4. Installing autosuggestions and syntax highlighting..."
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git .oh-my-zsh/custom/plugins/zsh-autosuggestions
|
git clone https://github.com/zsh-users/zsh-autosuggestions.git .oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git .oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git .oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||||
sed -i 's@plugins=(git)@plugins=(git zsh-autosuggestions zsh-syntax-highlighting)@g' ~/.zshrc
|
sed -i 's@plugins=(git)@plugins=(git zsh-autosuggestions zsh-syntax-highlighting)@g' ~/.zshrc
|
||||||
|
|
||||||
echo ""
|
echo
|
||||||
echo "Finish! Log out of your session and login again."
|
echo "Finish! Log out of your session and login again."
|
||||||
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user