Update post-install script

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-05-27 21:00:24 +02:00
parent 993229ae67
commit 3d2e53bbce
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 16 additions and 6 deletions

View file

@ -36,21 +36,29 @@ RUST_COMPONENTS=(
# Main code
#######################################
print_section "Setup notes directory"
if [ ! -d "${HOME}/notes" ]
then
if [ ! -d "${HOME}/notes" ]; then
git clone gl:notes "${HOME}/notes"
print_log "Created notes directory"
else
print_log "Notes directory already exists"
fi
print_section "Setup tasks directory"
if [ ! -d "${HOME}/tasks" ]
then
if [ ! -d "${HOME}/tasks" ]; then
git clone gl:tasks "${HOME}/tasks"
print_log "Created tasks directory"
else
print_log "Tasks directory allready exists"
fi
print_section "Installing global npm packages"
print_log "Installing ${#NPM_PACKAGES[@]} packages"
npm i -g "${NPM_PACKAGES[@]}"
print_section "Install Rust toolchain and components"
rustup toolchain install beta
rustup default beta
rustup component add "${RUST_COMPONENTS[@]}"
rustup component add "${RUST_COMPONENTS[@]}"
print_section "Manual TODOs"
print_log "Run ${YELLOW}~/.config/polybar/scripts/gmail/auth.py${RESET}"