Last active
December 29, 2021 02:21
-
-
Save rytse/9c0a08e21566080ef1e9117598afdc17 to your computer and use it in GitHub Desktop.
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
## Personal setup script | |
## TODO: before using, change email addresses in git and ssh | |
# Update system, install the basics | |
sudo apt update; sudo apt -y upgrade | |
sudo add-apt-repository ppa:pi-rho/dev -y | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install -y tmux vim git cmake build-essential exuberant-ctags curl gcc-4.9 g++-4.9 compizconfig-settings-manager xclip gnupg | |
mkdir ~/usrlib | |
mkdir ~/usrapps | |
# tmux | |
wget https://gist.githubusercontent.com/rytse/d69cb8e82e2ae3f8b6e6246e741d2cee/raw/87fbb751363081bed7ea30eac287b2b824782699/.tmux.conf | |
# git | |
git config --global user.name "Ryan Tse" | |
git config --global user.email TODO@TODO.TODO # TODO fill out | |
git config --global core.editor vim | |
# vim | |
git clone --depth=1 https://github.com/rytse/vimrc.git ~/.vim_runtime | |
sh ~/.vim_runtime/install_rytse_vimrc.sh | |
# nvim | |
mkdir ~/.config | |
mkdir ~/.config/nvim | |
cd ~/.config/nvim | |
wget https://gist.githubusercontent.com/rytse/53a500b7ddf5420ffbb5a31d53aec6d9/raw/666cdb87f349039fd2c4e7543c542c2168f3ec33/init.nvim | |
cd | |
# Rust | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
rustup override set stable | |
rustup update stable | |
# Alacritty | |
cd ~/usrapps/ | |
git clone https://github.com/alacritty/alacritty.git | |
sudo apt install -y cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev python3 | |
cd alacritty | |
cargo build --release | |
sudo tic -xe alacritty,alacritty-direct extra/alacritty.info | |
sudo cp target/release/alacritty /usr/local/bin # or anywhere else in $PATH | |
sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg | |
sudo desktop-file-install extra/linux/Alacritty.desktop | |
sudo update-desktop-database | |
sudo mkdir -p /usr/local/share/man/man1 | |
gzip -c extra/alacritty.man | sudo tee /usr/local/share/man/man1/alacritty.1.gz > /dev/null | |
# Fix matlab deps | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 | |
# Rigel | |
mkdir ~/.config/alacritty | |
cd ~/.config/alacritty | |
wget https://raw.githubusercontent.com/Rigellute/rigel/master/alacritty.yml | |
cd ~/.vim_runtime/my_plugins/ | |
# ydiff (setup for super diff) | |
cd ~/usrapps | |
git clone https://github.com/ymattw/ydiff.git | |
cd ydiff | |
./setup.py install | |
cd | |
# ssh | |
ssh-keygen -t ed25519 "TODO@TODO.TODO" # TODO fill out | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_ed25519 | |
# gpg | |
gpg --gen-key | |
# Set bashrc | |
wget -q https://gist.githubusercontent.com/rytse/793bbf7d576fc9777cc78cb44c527217/raw/ac4e732f5ab363061a594f75ef62ae1504e833c5/.bashrc -O ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment