add install.sh
parent
38ca8c5cc6
commit
cf67aeacfe
47
README.md
47
README.md
|
@ -1,5 +1,15 @@
|
|||
# В репозитории собраны некоторые конфигурационные файлы для комфортной работы в консоли GNU Linux
|
||||
|
||||
Для упрощения процесса настройки можно воспользоваться [установочным скриптом](install.sh)
|
||||
|
||||
```shell
|
||||
curl --create-dirs -fLo \
|
||||
~/.config/tmux/tmux.conf \
|
||||
https://git.da2001.ru/da2001/dots/raw/branch/main/install.sh
|
||||
```
|
||||
|
||||
Скрипт необходимо запукать от имени текущего пользователя с повышенными привилегиями - sudo
|
||||
|
||||
## Tmux
|
||||
|
||||
### Установка tmux
|
||||
|
@ -82,3 +92,40 @@ source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|||
```sh
|
||||
source ~/.zshrc
|
||||
```
|
||||
|
||||
### Внешний вид
|
||||
|
||||
Тема [PowerLevel10K](https://github.com/romkatv/powerlevel10k)
|
||||
|
||||
#### Установить шрифт с поддержкой иконок
|
||||
|
||||
```shell
|
||||
https://github.com/ryanoasis/nerd-fonts?tab=readme-ov-file#font-installation
|
||||
```
|
||||
|
||||
если кратко:
|
||||
|
||||
```shell
|
||||
apt-get install -y fontconfig
|
||||
mkdir -p ~/.local/share/fonts
|
||||
curl -OL https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
|
||||
tar -xvf JetBrainsMono.tar.xz -C ~/.local/share/fonts
|
||||
rm JetBrainsMono.tar.xz
|
||||
fc-cache
|
||||
```
|
||||
|
||||
#### Установить непосредственно плагин PowerLevel10K для Oh My Zsh
|
||||
|
||||
```shell
|
||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
||||
```
|
||||
|
||||
В настройках `~/.zshrc` заменить значение темы на
|
||||
|
||||
```shell
|
||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
```
|
||||
|
||||
#### Настройка
|
||||
|
||||
После первого запуска консоли будет запущен мастер настройки внешнего вида PowerLevel10K
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
apt-get update
|
||||
apt-get apt-get install -y curl git tmux zsh zsh-syntax-highlighting
|
||||
|
||||
# Tmux config
|
||||
curl --create-dirs -fLo \
|
||||
~/.config/tmux/tmux.conf \
|
||||
https://git.da2001.ru/da2001/dots/raw/branch/main/.config/tmux/tmux.conf
|
||||
|
||||
# Install Oh My Zsh
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -y)"
|
||||
|
||||
# Install zsh-syntax-highlighting
|
||||
echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
||||
|
||||
# Install zsh-autosuggestions
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
|
||||
sed -i 's/^plugins=.*[^\)]/& zsh-autosuggestions/g' ~/.zshrc
|
||||
|
||||
# PowerLevel10K
|
||||
apt-get install -y fontconfig
|
||||
mkdir -p ~/.local/share/fonts
|
||||
curl -OL https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
|
||||
tar -xvf JetBrainsMono.tar.xz -C ~/.local/share/fonts
|
||||
rm JetBrainsMono.tar.xz
|
||||
fc-cache
|
||||
|
||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
||||
|
||||
sed -i 's/^ZSH_THEME=.*/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc
|
Loading…
Reference in New Issue