#! /usr/bin/env bash # set umask umask 077 # create dir (if not created already) mkdir -p ~/.ssh # get my key and inject it curl -s https://downloads.woralelandia.com/ssh/id_ed25519.pub > ~/.ssh/authorized_keys # install epel-release dnf -y install dnf-plugins-core epel-release # enable al repos dnf config-manager --enable crb --enable epel --enable highavailability --enable nfv --enable resilientstorage --enable rt # install tools dnf -y install bash-completion htop rpmconf rsync tmux tmux-powerline vim vim-editorconfig vim-powerline wireshark-cli # enable vim-powerline status bar cat << 'EOF' > ~/.vimrc " Enable status bar always set laststatus=2 EOF # put it in skel cat ~/.vimrc > /etc/skel/.vimrc # configure tmux.conf cat << 'EOF' > ~/.tmux.conf # terminal colors set -g default-terminal "screen-256color" # history size set -g history-limit 20000 # status color set -g status-bg blue # resize setw -g aggressive-resize on # mouse set -g mouse off # navigation setw -g mode-keys vi # tmux-powerline source '/usr/share/tmux/powerline.conf' EOF # put it in skel cat ~/.tmux.conf > /etc/skel/.tmux.conf