Last active
July 14, 2021 19:35
-
-
Save knightspore/b27b1b018eacdd110bae47ab66cfd374 to your computer and use it in GitHub Desktop.
Install Dotfiles + Regularly Used Programs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Running Dotfiles Setup" | |
cd ~ | |
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
echo ".cfg" >> .gitignore | |
echo "✨ Cloning Bare Repo" | |
git clone --bare https://github.com/knightspore/dotfiles.git $HOME/.cfg | |
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
mkdir -p .config-backup && \ | |
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ | |
xargs -I{} mv {} .config-backup/{} | |
echo "✅ Checked out Config" | |
echo "✨ Installing Fish Term" | |
sudo apt-add-repository ppa:fish-shell/release-3 | |
sudo apt-get update | |
sudo apt-get install fish -y | |
echo "✅ Fish Term Installed" | |
echo "✨ Installing TMUX" | |
sudo apt-get install tmux -y | |
echo "✅ TMUX Installed" | |
echo "✨ Installing NVM" | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | |
nvm use 12 | |
echo "✅ NVM Installed" | |
echo "✨ Installing Yarn" | |
npm install --global yarn | |
yarn --version | |
echo "✅ Yarn Installed" | |
echo "✨ Installing Oh My Fish" | |
curl -L https://get.oh-my.fish | fish | |
chsh -s /usr/bin/fish | |
echo "✅ Oh My Fish Installed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment