Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 1.88 KB

in-case-i-forget.md

File metadata and controls

71 lines (51 loc) · 1.88 KB

I have multiple repos for my config because I just have to be extra.the purpose is to keep the private repo from being viewed in my dotfiles repo. and to keep the nvim config repo separate so it can one day be showcased on dotfyle.com.

so it's the private repo, this one daught-fylz (AKA dotfiles) and lua-is-the-devil (nvim)

So, in case i forget how i linked everything to dot config

  1. jump into dot config, you might have to create it

cd ~/.config

  1. create symbolic links for dotfiles and the private repos
ln -s ~/.dotfiles/* .
ln -s ~/.private/* .

Note

The asterisks is to symlink all files/dirs in parent dir, and the period tells the command to "link here (pwd)" in case you hit your head again without a helmet or riding gear, survive and don't remember bash basics

  1. make nvim directory in dot config and symlink lua-is-the-devil in pwd
mkdir -p nvim
ln -s ~/.lua-is-the-devil/* .

Note

You have to use mkdir -p because you probaly are on a new Mac and still fuck up the script to automate everything and don't have alias mk=mkdir -pv setup

  1. go into each local repo and git pull to be current…
cd ~/.dotfiles
git pull origin main

cd ~/.private
git pull origin main

cd ~/.lua-is-the-devil
git pull origin main

Note

This could work to but i think it outputs as a quote and not a comment. we'll see what le Git Hoob chose

  1. R U N the relevant local repo dir?
cd ~/.dotfiles/
  1. add commit push gac if aliases/functions.zsh is in place already
git add -A
git commit -m "type message"
git push origin main
  1. or run a script that you're too lazy to write rn
#!/bin/bash
REPOS=(".dotfiles" ".private" ".lua-is-the-devil")

for repo in "${REPOS[@]}"; do
  cd "$HOME/$repo"
  git pull origin main
done

Note

I'll probably figure something out later to streamline this… with some AI help.