Last active
July 24, 2018 22:45
-
-
Save xykj61/1f63448277213126a7f7ae2947ff21fc 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
#! /bin/bash | |
# Initial setup | |
cd ~; | |
# Initial APT packages update/upgrade | |
sudo apt update; | |
sudo apt upgrade --yes --allow-change-held-packages --allow-downgrades --allow-remove-essential; | |
# Mosh setup | |
sudo apt install mosh -y; | |
# Tmux setup | |
sudo apt install tmux -y; | |
## Install Tmux Package Manager (tpm) | |
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm; | |
## Set up ~/.tmux.conf | |
printf "# List of plugins\nset -g @plugin 'tmux-plugins/tpm'\nset -g @plugin 'tmux-plugins/tmux-sensible'\nset -g @plugin 'tmux-plugins/tmux-resurrect'\n\n# Other examples:\n# set -g @plugin 'github_username/plugin_name'\n# set -g @plugin 'git@github.com/user/plugin'\n# set -g @plugin 'git@bitbucket.com/user/plugin'\n\n# Additional programs to restore\nset -g @resurrect-processes 'urbit'\n\n# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)\nrun '~/.tmux/plugins/tpm/tpm'\n" >> ~/.tmux.conf; | |
## Create Tmux session and attach to it | |
tmux new-session -s urbit $(curl https://gist.github.com/keatondunsford/a15e9d32d0b7d497d029b7963ff8deea/raw); | |
# Restart instance | |
sudo shutdown -r now; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment