45 lines
1.6 KiB
Bash
Executable File
45 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$EUID" -eq 0 ]; then
|
|
echo "Do not run as root!"
|
|
exit
|
|
fi
|
|
|
|
cd ${HOME}
|
|
git clone https://github.com/cdanesi/dotfiles ${HOME}/dots &> /dev/null
|
|
|
|
mkdir -p \
|
|
${HOME}/.ssh \
|
|
${HOME}/bin \
|
|
${HOME}/scripts
|
|
|
|
cp -fvr \
|
|
${HOME}/dots/.aliases \
|
|
${HOME}/dots/.bashrc \
|
|
${HOME}/dots/.xinitrc \
|
|
${HOME}/
|
|
|
|
cp -fvr \
|
|
${HOME}/dots/.config/tmux \
|
|
${HOME}/dots/.config/alacritty \
|
|
${HOME}/dots/.config/nvim \
|
|
${HOME}/dots/.config/{i3,i3status} \
|
|
${HOME}/dots/.config/{btop,htop} \
|
|
${HOME}/dots/.config/picom \
|
|
${HOME}/dots/.config/todo \
|
|
${HOME}/dots/.config/ranger \
|
|
${HOME}/dots/.config/nano \
|
|
${HOME}/dots/.config/bat \
|
|
${HOME}/.config/
|
|
|
|
# install tmux plugin manager
|
|
git clone https://github.com/tmux-plugins/tpm ${HOME}/.config/tmux/plugins/tpm &> /dev/null
|
|
|
|
# install oh-my-zsh + plugins + p10k theme
|
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions &> /dev/null
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting &> /dev/null
|
|
git clone --depth 1 https://github.com/unixorn/fzf-zsh-plugin.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin &> /dev/null
|
|
git clone https://github.com/jeffreytse/zsh-vi-mode ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-vi-mode &> /dev/null
|
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k &> /dev/null
|