63 lines
No EOL
1.5 KiB
Bash
Executable file
63 lines
No EOL
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# SCRIPT NAME:
|
|
# post-install
|
|
#
|
|
# AUTHOR:
|
|
# Severin Kaderli <severin@kaderli.dev>
|
|
#
|
|
# DESCRIPTION:
|
|
# This is the post-install script for my dotfiles. It should be only run
|
|
# after install has been run and the system has been rebooted. This script
|
|
# installs global npm packages.
|
|
#
|
|
# USAGE:
|
|
# ./post-install
|
|
. ./system/.local/bin/utils
|
|
|
|
set -e
|
|
|
|
#######################################
|
|
# Configuration variables
|
|
#######################################
|
|
# npm packages which should be installed globally
|
|
NPM_PACKAGES=(
|
|
"@vue/cli"
|
|
"eslint"
|
|
"gatsby-cli"
|
|
"npm-check-updates"
|
|
)
|
|
|
|
|
|
|
|
#######################################
|
|
# Main code
|
|
#######################################
|
|
print_section "Setup notes directory"
|
|
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
|
|
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 "Manual TODOs"
|
|
print_log "Run ${YELLOW}~/.config/polybar/scripts/gmail/auth.py${RESET}"
|
|
print_log "Add taskwarrior keys to ${YELLOW}~/.local/keys/taskwarrior/${RESET}"
|
|
|
|
# ADD user to sudoers manually
|
|
# Comment out [Multilib] |