Skip to content

Instantly share code, notes, and snippets.

@antontsv
Last active July 25, 2016 06:19
Show Gist options
  • Save antontsv/7ac9af20b227ef05b9adb69209e28c7a to your computer and use it in GitHub Desktop.
Save antontsv/7ac9af20b227ef05b9adb69209e28c7a to your computer and use it in GitHub Desktop.
Readonly setup with homeshick
#!/usr/bin/env bash
[ -f "$HOME/.sh/init_homeshick.extra" ] && rm "$HOME/.sh/init_homeshick.extra"
base_install_gist='https://gist.githubusercontent.com/antontsv/1167f4a1128b505e9ee1740947491580/raw/f868d4ea76262d0a4cd7bf10695eab6e6a10733d/homeshick.files'
# Homeshick & .files
curl "$base_install_gist" | DOT_FILES_REPO="https://github.com/antontsv/.files.git" bash
# ~/bin
curl "$base_install_gist" | DOT_FILES_REPO="https://github.com/antontsv/home.bin.git" DOT_FILES_CASTLE_BRANCH="master" DOT_FILES_CASTLE_NAME="home.bin" bash
if [ -d "$HOME/repos/private.files" ];then
curl "$base_install_gist" | DOT_FILES_REPO="$HOME/repos/private.files" DOT_FILES_CASTLE_BRANCH="local-mac" DOT_FILES_CASTLE_NAME="private.files" bash
fi;
OS=$(uname -s)
# extra scripts for  OSX
if [ "$OS" = "Darwin" ]; then
curl "$base_install_gist" | DOT_FILES_REPO="https://github.com/antontsv/apple.bin.git" DOT_FILES_CASTLE_BRANCH="master" DOT_FILES_CASTLE_NAME="apple.bin" bash
fi;
mkdir "$HOME/bin"
if [ ! -d "$HOME/bin/awesome-shell" ];then
git clone https://github.com/antontsv/awesome-shell.git $HOME/bin/awesome-shell
source "$HOME/.profile"
$HOME/bin/awesome-shell/INSTALL
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment