diff options
| -rw-r--r-- | README.md | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..5133cf9 --- /dev/null +++ b/README.md @@ -0,0 +1,94 @@ +# Prerequisites : +Install xcode and homebrew + +```bash +xcode-select --install + +ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +brew tap Homebrew/bundle +brew bundle +``` + +# Installation : + +- Clone the repo +```bash +git clone [email protected]:a14m/.rc.git ~/.rc +``` + +- 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/.netrc ~/.netrc +ln -sf ~/.rc/.terraformrc ~/.terraformrc +ln -sf ~/.rc/.tmux.conf ~/.tmux.conf +chmod 600 ~/.netrc +chmod 600 ~/.terraformrc + +ln -sf ~/.rc/.gitconfig ~/.gitconfig +ln -sf ~/.rc/.gitignore_global ~/.gitignore_global + +mkdir -p ~/.config/htop ~/.config/tmuxinator ~/.config/wtf +ln -sf ~/.rc/.config/htop/htoprc ~/.config/htop/htoprc +ln -sf ~/.rc/.config/wtf/config.yml ~/.config/wtf/config.yml + +sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells' +chsh -s /usr/local/bin/bash +``` + +- Setup ruby/rbenv +```bash +mkdir -p ~/.bundle +ln -sf ~/.rc/.bundle/config ~/.bundle/config + +git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash +git clone https://github.com/sstephenson/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars +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 +git clone https://github.com/rkh/rbenv-update.git ~/.rbenv/plugins/rbenv-update + +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 rust +```bash +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +``` + +- Setup node/nvm +```bash +mkdir -p ~/.nvm +ln -sf ~/.rc/.npmrc ~/.npmrc +ln -sf ~/.rc/.nvmrc ~/.nvmrc +ln -sf ~/.rc/.nvm/default-packages ~/.nvm/default-packages +nvm install +nvm alias default +``` + +- Decrypt secrets +```bash +source ~/.bash_profile +git-crypt unlock +``` + +- Other Useful tools setup +```bash +# Install pow +curl get.pow.cx | sh +ln -sf ~/.rc/.powconfig ~/.powconfig + +# Uninstall pow +curl get.pow.cx/uninstall.sh | sh +``` + +- Fix Kali Linux Timezone +```bash +sudo apt-get install ntpdate +sudo ntpdate in.pool.ntp.org +``` |
