Skip to content

Instantly share code, notes, and snippets.

@dRumata
Last active May 30, 2024 10:08
Show Gist options
  • Save dRumata/cb3c36087a740af570b516c5f2f4a7e0 to your computer and use it in GitHub Desktop.
Save dRumata/cb3c36087a740af570b516c5f2f4a7e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "[step 1] ====== Установка ПО"
sudo dnf install epel-release
sudo dnf install neovim git tmux mc curl ripgrep gcc neofetch duf cowsay fortune-mod -y
echo "[step 2] ====== Enable cockpit"
sudo systemctl enable --now cockpit.socket
systemctl status cockpit.service
echo "[step 3] ====== Tmux конфигурация"
tee ~/.tmux.conf << _EOF_
set -g mouse on
set -g status-style bg=black
set -g window-status-current-style bg=yellow,fg=black,bold
set -g status-right '#(curl -s wttr.in/Hamburg:Москва:Челябинск:Иркутск:Владивосток\?format\="%%l:+%%c%%20%%t%%60%%w&period=20") ...'
#set -g status-right '#(curl "wttr.in/?format=3") '
set -g default-terminal "tmux-256color"
set -g status-interval 10
set -g status-left-length 30
set -g status-left '#[fg=green]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=cyan]%H:%M#[default] '
_EOF_
echo "[step 4] ====== Добавляем шрифты"
mkdir -v -p ~/.local/share/fonts
cd /tmp/
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/MartianMono.zip && unzip MartianMono.zip -d ~/.local/share/fonts/
cd
echo "[step 5] ====== Наводим красоту для Neovim"
git clone https://github.com/NvChad/starter ~/.config/nvim
sudo mkdir -v /root/.config
sudo cp -v ~/.config/nvim /root/.config/nvim -R
echo "[step 6] ====== vim теперь neovim"
echo "alias vim=nvim"|tee -a ~/.bashrc
echo "--------------------------------------"
echo "ВНИМАНИЕ!!! При первом запуске nvim или vim будет произведена инициализация и настройка плагинов."
echo "--------------------------------------"
echo "[step 6] ====== Добавляем подсветку в man-страницах"
tee -a ~/.bash_profile << _EOF_
export LESS_TERMCAP_mb=$'\e[1;34m' # begin bold
export LESS_TERMCAP_md=$'\e[1;32m' # begin blink
export LESS_TERMCAP_so=$'\e[01;44;37m' # begin reverse video
export LESS_TERMCAP_us=$'\e[01;36m' # begin underline
export LESS_TERMCAP_me=$'\e[0m' # reset bold/blink
export LESS_TERMCAP_se=$'\e[0m' # reset reverse video
export LESS_TERMCAP_ue=$'\e[0m' # reset underline
export GROFF_NO_SGR=1 # for konsole and gnome-terminal
export MANPAGER='less -s -M +Gg'
neofetch
who -a
neofetch disk --disk_display infobar --disk_show '/' '/var' '/home'
echo "Tmux sessions:"
tmux ls
fortune | cowsay -W 60
_EOF_
@dRumata
Copy link
Author

dRumata commented May 30, 2024

Подготавливает стандартный набор утилит и конфигураций к ним для rpm-based дистрибутивов
Набор настроек для утилит:

  • tmux
  • neovim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment