From 05bfd6ecf68a98c5b2ab1309f8259bcbef8d340f Mon Sep 17 00:00:00 2001 From: Charles D Date: Sun, 25 Jun 2023 08:26:47 -0400 Subject: [PATCH] add user config --- Makefile | 3 +++ pkg/configure-user.sh | 36 ++++++++++++++++++++++++++++++++++-- pkg/packages-official.txt | 2 ++ 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aaca8cb..4ac1fad 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,6 @@ install-packages: yay: #todo + +install-blackarch: + cd pkg/scripts && curl -O https://blackarch.org/strap.sh && sh ./strap.sh diff --git a/pkg/configure-user.sh b/pkg/configure-user.sh index 031c6e7..128cda0 100755 --- a/pkg/configure-user.sh +++ b/pkg/configure-user.sh @@ -5,8 +5,40 @@ if [ "$EUID" -eq 0 ]; then 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 - -# put dotfiles in place +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 diff --git a/pkg/packages-official.txt b/pkg/packages-official.txt index 13ca8c5..4226567 100644 --- a/pkg/packages-official.txt +++ b/pkg/packages-official.txt @@ -1,5 +1,6 @@ base base-devel +bat bitwarden blueman bluez @@ -8,6 +9,7 @@ dhclient dmenu dnsutils docker +exa figlet firefox-developer-edition git