index : dotfiles.git

ascending towards madness

author holly sparkles <sparkles@holly.sh> 2024-04-28 18:38:45.0 +00:00:00
committer holly sparkles <sparkles@holly.sh> 2024-04-28 18:38:45.0 +00:00:00
commit
d92a3fa3a0969f1353bd7258bd48fe10abf4bdae [patch]
tree
76180fb9720b827a70ed2a128cbc47f6c0e8f02a
parent
c6131121a46ffbee4e79176df6cbeb814920c3fc
download
d92a3fa3a0969f1353bd7258bd48fe10abf4bdae.tar.gz

add script to sync dotfiles

one-way sync for now

Diff

 sync.zsh | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/sync.zsh b/sync.zsh
new file mode 100755
index 0000000..993862e
--- /dev/null
+++ b/sync.zsh
@@ -0,0 +1,21 @@
#!/bin/env zsh

DOTFILES_DIR=.

# dir structure
mkdir -p "${DOTFILES_DIR}/.config/gtk-3.0"
mkdir -p "${DOTFILES_DIR}/.config/helix"
mkdir -p "${DOTFILES_DIR}/.config/kitty"
mkdir -p "${DOTFILES_DIR}/.config/zellij"
mkdir -p "${DOTFILES_DIR}/.scripts"

# configs
cp -v $HOME/.zshrc $DOTFILES_DIR/.zshrc
cp -v $HOME/.config/gtk-3.0/gtk.css $DOTFILES_DIR/.config/gtk-3.0/gtk.css
cp -v $HOME/.config/helix/config.toml $DOTFILES_DIR/.config/helix/config.toml
cp -v $HOME/.config/kitty/kitty.conf $DOTFILES_DIR/.config/kitty/kitty.conf
cp -vr $HOME/.config/zellij/ $DOTFILES_DIR/.config/

# scripts
cp -v $SCRIPTS/calendar.sh $DOTFILES_DIR/.scripts/calendar.sh
cp -v $SCRIPTS/zellij-launcher.zsh $DOTFILES_DIR/.scripts/zellij-launcher.zsh