Skip to content

Instantly share code, notes, and snippets.

View yinghaochan's full-sized avatar

Ying Hao Chan yinghaochan

View GitHub Profile
@yinghaochan
yinghaochan / bootstrap_homeshick.sh
Created January 11, 2019 01:28 — forked from andsens/bootstrap_homeshick.sh
Script that can set up an entire user account with homeshick automatically
#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/andsens/2913223/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the raw (<>) button.
### Set some command variables depending on whether we are root or not ###
# This assumes you use a debian derivate, replace with yum, pacman etc.
aptget='sudo apt-get'
chsh='sudo chsh'