Skip to content

Instantly share code, notes, and snippets.

View antontsv's full-sized avatar

Anton Tsviatkou antontsv

View GitHub Profile
@antontsv
antontsv / setup.bash
Last active March 12, 2020 05:32
Setup with homeshick - https://git.io/all.files
#!/usr/bin/env bash
commands=(git)
if [ -n "$URL_SHELL_EXEC" ];then
commands+=("$URL_SHELL_EXEC")
else
commands+=(curl)
fi;
has_commands=1
for cmd in ${commands[@]};do
@antontsv
antontsv / homeshick.files
Last active November 12, 2023 06:51
Install .files using homeshick - https://git.io/install.files
#!/usr/bin/env bash
homeshick_home_dir=${HOMESHICK_DIR:-$HOME/.homesick}
homeshick_repos_dir="$homeshick_home_dir/repos"
# In this setup main repo should not contain root /home directory
main_repo_uri="${DOT_FILES_REPO:-https://github.com/antontsv/.files.git}"
main_castle_name="${DOT_FILES_CASTLE_NAME:-main.files}"
main_castle_branch="${DOT_FILES_CASTLE_BRANCH:-master}"
main_castle_ignore_files="${DOT_FILES_IGNORE_FILES:-LICENSE,README.md,/.gitmodules}"
key_file="${DOT_FILES_REPO_PUB_PGP_KEY_FILE}"