Last active
May 6, 2019 20:29
-
-
Save ianfabs/7253d2a1bfe4654e8e73eec59f194b58 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
RED='\033[0;31m' | |
BLUE='\033[0;34m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
#Update and install necesary tools | |
echo "${BLUE}UPDATING AND INSTALLING TOOLS ${NC}\n" | |
sudo apt update | |
sudo apt install curl zsh git neovim python3-dev python3-pip python3-setuptools -y | |
sudo pip3 install thefuck | |
# Oh My Zsh install | |
echo "${BLUE}INSTALLING OH MY ZSH ${NC}\n" | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sed 's/env zsh -l//')" | |
# Install Kitty Terminal | |
echo "${BLUE}INSTALLING KITTY ${NC}\n" | |
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin \launch=n | |
sudo ln -s ~/.local/kitty.app/bin/kitty /usr/local/bin | |
cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications | |
sed -i "s/Icon\=kitty/Icon\=\/home\/$USER\/.local\/kitty.app\/share\/icons\/hicolor\/256x256\/apps\/kitty.png/g" ~/.local/share/applications/kitty.desktop | |
gsettings set org.gnome.desktop.default-applications.terminal exec 'kitty' | |
# Install Rust | |
echo "${BLUE}INSTALLING RUST ${NC} \n" | |
sh -c "$(curl https://sh.rustup.rs -sSf)" -s -y | |
echo "${RED}CARGO WILL BE ADDED TO YOUR PATH ON NEXT LOGIN ${NC}\n" | |
# Install Deno | |
echo "${BLUE} INSTALLING DENO ${NC} \n" | |
curl -fsSL https://deno.land/x/install/install.sh | sh | |
echo 'export PATH="/home/ian/.deno/bin:$PATH"' >> ~/.zshrc | |
# Install NVM | |
# TODO | |
# TODO Install dein and all vim plugins | |
# might have to remove the > /dev/null, i dont know yet thougt | |
sh -c "$(curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh)" -s ~/.cache/dein > /dev/null | |
echo 'if &compatible' >> ~/.nvimrc | |
echo ' set nocompatible " Be iMproved' >> ~/.nvimrc | |
echo 'endif' >> ~/.nvimrc | |
echo '" Required:' >> ~/.nvimrc | |
echo 'set runtimepath+=/home/ian/.cache/dein/repos/github.com/Shougo/dein.vim' >> ~/.nvimrc | |
echo '" Required:' >> ~/.nvimrc | |
echo "if dein#load_state('/home/ian/.cache/dein')" >> ~/.nvimrc | |
echo " call dein#begin('/home/ian/.cache/dein')" >> ~/.nvimrc | |
echo '' >> ~/.nvimrc | |
echo ' " Let dein manage dein' >> ~/.nvimrc | |
echo ' " Required:' >> ~/.nvimrc | |
echo " call dein#add('/home/ian/.cache/dein/repos/github.com/Shougo/dein.vim')" >> ~/.nvimrc | |
echo '' >> ~/.nvimrc | |
echo ' " Add or remove your plugins here like this:' >> ~/.nvimrc | |
echo " call dein#add('Shougo/neosnippet.vim')" >> ~/.nvimrc | |
echo " call dein#add('Shougo/neosnippet-snippets')" >> ~/.nvimrc | |
echo " call dein#add('wellle/targets.vim')" >> ~/.nvimrc | |
echo " call dein#add('tpope/vim-surround')" >> ~/.nvimrc | |
echo " call dein#add('itchyny/lightline.vim')" >> ~/.nvimrc | |
echo " call dein#add('terryma/vim-multiple-cursors')" >> ~/.nvimrc | |
echo " call dein#add('scrooloose/nerdtree')" >> ~/.nvimrc | |
echo " call dein#add('wakatime/vim-wakatime')" >> ~/.nvimrc | |
echo '' >> ~/.nvimrc | |
echo ' " Required:' >> ~/.nvimrc | |
echo ' call dein#end()' >> ~/.nvimrc | |
echo ' call dein#save_state()' >> ~/.nvimrc | |
echo 'endif' >> ~/.nvimrc | |
echo '" Required:' >> ~/.nvimrc | |
echo 'filetype plugin indent on' >> ~/.nvimrc | |
echo 'syntax enable' >> ~/.nvimrc | |
echo '" If you want to install not installed plugins on startup.' >> ~/.nvimrc | |
echo 'if dein#check_install()' >> ~/.nvimrc | |
echo ' call dein#install()' >> ~/.nvimrc | |
echo 'endif' >> ~/.nvimrc | |
echo 'map <C-o> :NERDTreeToggle<CR>' >> ~/.nvimrc | |
echo 'set number' >> ~/.nvimrc | |
mkdir ~/.config/nvim | |
echo 'source ~/.nvimrc' > ~/.config/nvim/init.vim | |
# Configure ZSH | |
sed "s/$ '/λ '/g" .oh-my-zsh/themes/amuse.zsh-theme > ~/.oh-my-zsh/themes/fabs.zsh-theme | |
sed -i "s/robbyrussell/fabs/g" ~/.zshrc | |
echo 'eval $(thefuck --alias)' >> ~/.zshrc | |
echo 'cd ~' >> ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment