2022-08-23 12:04:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-08-23 12:12:21 +02:00
|
|
|
MY_NAME="waldek"
|
|
|
|
MY_EMAIL="waldek@mailbox.org"
|
2022-08-23 12:04:32 +02:00
|
|
|
MY_SHELL="zsh"
|
|
|
|
MY_ZSH_THEME="robbyrussell"
|
|
|
|
MY_BASH_THEME="vscode"
|
|
|
|
|
|
|
|
# install my bare essentials
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y vim-nox htop tmux wget curl git zsh fish strace
|
|
|
|
|
2022-08-23 12:20:38 +02:00
|
|
|
# install the oh-my-zsh framework
|
2022-08-23 12:04:32 +02:00
|
|
|
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
|
|
|
|
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
|
|
|
sudo chsh -s $(which $MY_SHELL) $USER
|
|
|
|
|
|
|
|
# modify the theme of oh-my-zsh
|
|
|
|
sed -i "s/robbyrussell/$MY_ZSH_THEME/g" ~/.zshrc
|
|
|
|
|
|
|
|
# install oh-my-bash framework
|
|
|
|
git clone https://github.com/ohmybash/oh-my-bash.git ~/.oh-my-bash
|
|
|
|
cp ~/.oh-my-bash/templates/bashrc.osh-template ~/.bashrc
|
|
|
|
|
|
|
|
# modify the theme of oh-my-zsh
|
|
|
|
sed -i "s/font/$MY_BASH_THEME/g" ~/.bashrc
|
|
|
|
|
2022-08-23 12:12:21 +02:00
|
|
|
GIT_CONFIG_FILE=~/.gitconfig
|
|
|
|
touch $GIT_CONFIG_FILE
|
2022-08-23 14:32:49 +02:00
|
|
|
echo "[user]" > $GIT_CONFIG_FILE
|
2022-08-23 12:12:21 +02:00
|
|
|
echo "name = $MY_NAME" >> $GIT_CONFIG_FILE
|
|
|
|
echo "email = $MY_EMAIL" >> $GIT_CONFIG_FILE
|
|
|
|
|
2022-08-23 14:32:49 +02:00
|
|
|
# install the bootstrap source
|
|
|
|
mkdir ~/sources
|
|
|
|
git clone ssh://gitea@86thumbs.net:3022/waldek/new_bootstrap.git ~/sources/bootstrap
|
2022-08-23 12:12:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|