From 313ce4826b22a8f6f3e9104445998eee593349ef Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Wed, 8 May 2024 18:14:47 +0300 Subject: [PATCH] chore: migrate to my own script from rcm --- README.md | 4 ++-- bootstrap | 24 ++++++++++++++++++++++++ rcrc | 2 -- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100755 bootstrap delete mode 100644 rcrc diff --git a/README.md b/README.md index 1b5e031..a53dede 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ ## Install dependencys ```bash -paru -S rcm neovim-git git kitty github-cli tmux zsh fish ttf-jetbrains-mono hyprland waybar hyprpaper \ +paru -S neovim-git git kitty github-cli tmux zsh fish ttf-jetbrains-mono hyprland waybar hyprpaper \ wofi grim dunst brightnessctl pavucontrol xdg-desktop-portal-hyprland xdg-desktop-portal-gtk ``` ## And install deps ```bash git clone --recursive https://github.com/olexsmir/dotfiles ~/.dotfiles -rcup rcrc && rcup +./bootstrap ``` diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..3880ff7 --- /dev/null +++ b/bootstrap @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +set -e + +ln -sf "$PWD/zshrc" "$HOME/.zshrc" +ln -sf "$PWD/gitconfig" "$HOME/.gitconfig" +ln -sf "$PWD/tmux.conf" "$HOME/.tmux.conf" + +mkdir -p "$HOME/bin/" +for file in $(find "$PWD/bin" -type f); do + ln -sf "$file" "$HOME/bin" +done + +mkdir -p "$HOME/.config/" +ln -sf "$PWD/config/alacritty.yml" "$HOME/.config/alacritty.yml" +ln -sf "$PWD/config/electron-flags.conf" "$HOME/.config/electron-flags.conf" +ln -sf "$PWD/config/starship.toml" "$HOME/.config/starship.toml" + +for dir in $(find "$PWD/config/" -type d); do + mkdir -p "$HOME/.config${dir#$PWD/config}" + + for file in $(find "$dir" -maxdepth 1 -type f); do + ln -sf "$file" "$HOME/.config${file#$PWD/config}" + done +done diff --git a/rcrc b/rcrc deleted file mode 100644 index 8d29d71..0000000 --- a/rcrc +++ /dev/null @@ -1,2 +0,0 @@ -EXCLUDES="README.md screen.png .gitmodules bootstrap.sh" -UNDOTTED="bin"