From 1d45ff7003a4e26f1f616fa0377f0ac49efe1d1d Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 20 Mar 2024 12:24:55 +0100 Subject: Add stow package and update the macOS instructions --- .stow-local-ignore | 10 ++++++++++ Brewfile | 1 + MacOS.md | 58 +----------------------------------------------------- 3 files changed, 12 insertions(+), 57 deletions(-) create mode 100644 .stow-local-ignore diff --git a/.stow-local-ignore b/.stow-local-ignore new file mode 100644 index 0000000..3753f1f --- /dev/null +++ b/.stow-local-ignore @@ -0,0 +1,10 @@ +/.git +/.gitignore +/.git-crypt + +^/Brewfile +.*.md + +etc +/.gnupg + diff --git a/Brewfile b/Brewfile index 042de08..7a5df1c 100644 --- a/Brewfile +++ b/Brewfile @@ -23,6 +23,7 @@ brew "tmux" brew "tmuxinator" brew "youtube-dl" brew "reattach-to-user-namespace" +brew "stow" # brew "ruby-build" # brew "rbenv" # brew "pyenv" diff --git a/MacOS.md b/MacOS.md index 3d9ceed..6264f1b 100644 --- a/MacOS.md +++ b/MacOS.md @@ -13,33 +13,8 @@ brew bundle # Installation : ## Essentials ```bash -ln -sf ~/.rc/.bash_profile ~/.bash_profile -ln -sf ~/.rc/.editorconfig ~/.editorconfig -ln -sf ~/.rc/.inputrc ~/.inputrc -ln -sf ~/.rc/.screenrc ~/.screenrc -ln -sf ~/.rc/.tmux.conf ~/.tmux.conf -ln -sf ~/.rc/.tmux-osx.conf ~/.tmux-osx.conf -ln -sf ~/.rc/.amethyst.yml ~/.amethyst.yml - -ln -sf ~/.rc/.gitconfig ~/.gitconfig -ln -sf ~/.rc/.gitconfig.work.inc ~/.gitconfig.work.inc -ln -sf ~/.rc/.gitignore_global ~/.gitignore_global - -mkdir -p ~/.ssh -ln -sf ~/.rc/.ssh/config ~/.ssh/config - -mkdir -p ~/.config/htop -ln -sf ~/.rc/.config/htop/htoprc ~/.config/htop/htoprc - -mkdir -p ~/.config/tmuxinator -ln -sf ~/.rc/.config/tmuxinator/personal.yml ~/.config/tmuxinator/personal.yml -ln -sf ~/.rc/.config/tmuxinator/spc.yml ~/.config/tmuxinator/spc.yml -ln -sf ~/.rc/.config/tmuxinator/mb.yml ~/.config/tmuxinator/mb.yml -ln -sf ~/.rc/.config/tmuxinator/infra.yml ~/.config/tmuxinator/infra.yml - -ln -sf ~/.rc/.ctags ~/.ctags - cd ~/.rc +stow --no-folding . git remote remove origin git remote add origin git@git.sr.ht:~a14m/.rc ``` @@ -80,24 +55,15 @@ chsh -s $(brew --prefix)/bin/bash - Setup ruby/rbenv ```bash brew install rbenv -mkdir -p ~/.bundle -ln -sf ~/.rc/.bundle/config ~/.bundle/config - git clone https://github.com/tpope/rbenv-ctags.git ~/.rbenv/plugins/rbenv-ctags git clone https://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems - -ln -sf ~/.rc/.gemrc ~/.gemrc -ln -sf ~/.rc/.rbenv/default-gems ~/.rbenv/default-gems rbenv install $(cat ~/.rc/.rbenv/version) -ln -sf ~/.rc/.rbenv/version ~/.rbenv/version ``` - Setup python ```bash brew install pyenv -mkdir -p ~/.pyenv pyenv install $(cat ~/.rc/.pyenv/version) -ln -sf ~/.rc/.pyenv/version ~/.pyenv/version ``` - Setup GO @@ -114,11 +80,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ```bash brew install nvm mkdir -p ~/.nvm -ln -sf ~/.rc/.npmrc ~/.npmrc -ln -sf ~/.rc/.nvmrc ~/.nvmrc -ln -sf ~/.rc/.nvm/default-packages ~/.nvm/default-packages exec $SHELL -l - nvm install nvm alias default ``` @@ -157,27 +119,9 @@ sudo apt install rlwrap xsel -y ```bash brew install neomutt brew install links - -mkdir -p ~/.config/neomutt -ln -sf ~/.rc/.neomuttrc ~/.neomuttrc -ln -sf ~/.rc/.config/neomutt/settings ~/.config/neomutt/settings -ln -sf ~/.rc/.config/neomutt/colors ~/.config/neomutt/colors -ln -sf ~/.rc/.config/neomutt/mappings ~/.config/neomutt/mappings -ln -sf ~/.rc/.config/neomutt/mailcap ~/.config/neomutt/mailcap - -mkdir -p ~/.links -ln -sf ~/.rc/.links/links.cfg ~/.links/links.cfg -``` - -- WTFUtil -```bash -mkdir -p ~/.config/wtf -ln -sf ~/.rc/.config/wtf/config.yml ~/.config/wtf/config.yml ``` - Shell GPT client ```bash pip3 install shell-gpt -mkdir -p ~/.config/shell_gpt -ln -sf ~/.rc/.config/shell_gpt/.sgptrc ~/.config/shell_gpt/.sgptrc ``` -- cgit v1.2.3