# RC: [RUNCOM](https://en.wikipedia.org/wiki/RUNCOM) ## Prerequisites Install xcode and homebrew ```bash xcode-select --install /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" git clone https://git.sr.ht/~a14m/.rc ~/.rc cd ~/.rc brew analytics off brew tap Homebrew/bundle brew bundle ``` ## Installation ### Essentials ```bash cd ~/.rc stow --no-folding . git remote remove origin git remote add origin git@git.sr.ht:~a14m/.rc ``` ### GPG smart key GPG setup ```bash mkdir -p ~/.gnupg chmod 700 ~/.gnupg sudo ln -sf ~/.rc/.gnupg/pinentry-wrapper /usr/local/bin/pinentry-wrapper ln -sf ~/.rc/.gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf ln -sf ~/.rc/.gnupg/sshcontrol ~/.gnupg/sshcontrol gpg-connect-agent killagent /bye gpg-connect-agent updatestartuptty /bye gpg-connect-agent /bye gpgconf --kill all ``` Load pgp key from card and trust it ```bash gpg --edit-card > fetch gpg --edit-key pm@a14m.me > trust ``` ### MacOS (extras) Set `Bash` shell as default ```bash sudo bash -c 'echo $(brew --prefix)/bin/bash >> /etc/shells' chsh -s $(brew --prefix)/bin/bash ``` ### Languages #### Setup ruby/rbenv ```bash brew install rbenv 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 rbenv install $(cat ~/.rc/.rbenv/version) ``` #### Setup python ```bash brew install pyenv pyenv install $(cat ~/.rc/.pyenv/version) ``` #### Setup GO ```bash brew install golang ``` #### Setup rust ```bash curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` #### Setup node/nvm ```bash brew install nvm mkdir -p ~/.nvm exec $SHELL -l nvm install nvm alias default ``` ### Tools #### Git Crypt ```bash brew install git-crypt source ~/.bash_profile cd ~/.rc git-crypt unlock ``` #### Setup password store ```bash git clone git@github.com:a14m/.pass ~/.password-store ``` #### [vim](https://git.sr.ht/~a14m/.vim) ```bash git clone git@git.sr.ht:~a14m/.vim ~/.vim ln -sf ~/.vim/.vimrc ~/.vimrc vim +PlugInstall ``` #### Mutt email/links browser ```bash brew install neomutt brew install links ```