diff --git a/install b/install index fb8ebf4..de5ec99 100755 --- a/install +++ b/install @@ -27,18 +27,14 @@ HOST="$(hostname)" DIRECTORIES=( ".local/log" ".local/share/gnupg/" + "build" "documents" "downloads" - "videos" -) - -PRIVATE_DIRECTORIES=( - "build" "projects" -) - -WORK_DIRECTORIES=( - "work" + "videos" + "work/opensource" + "work/projects" + "work/tools" ) # Files which should be symlinked in the home folder @@ -239,20 +235,6 @@ do mkdir -p "${HOME}/${dir}" done -if [ "${IS_WORK}" = "1" ]; then - for dir in "${WORK_DIRECTORIES[@]}" - do - print_log "Creating directory ${YELLOW}${HOME}/${dir}${RESET}" - mkdir -p "${HOME}/${dir}" - done -else - for dir in "${PRIVATE_DIRECTORIES[@]}" - do - print_log "Creating directory ${YELLOW}${HOME}/${dir}${RESET}" - mkdir -p "${HOME}/${dir}" - done -fi - print_section "Setup notes directory" if [ ! -d "${HOME}/notes" ]; then git clone gl:notes "${HOME}/notes" @@ -281,6 +263,15 @@ else cd "${OLD_DIR}" || exit fi +############################################################################### +# Prepare work tools # +############################################################################### +print_section "Prepare work tools" +print_log "Installing dde" +if [ ! -d "${HOME}/work/tools/dde" ]; then + git clone "https://github.com/whatwedo/dde" "${HOME}/work/tools/dde" +fi + ############################################################################### # Creating symlinks # @@ -371,7 +362,7 @@ done # Enable ntp # ############################################################################### print_section "Enabling ntp" -timedatectl set-ntp true +sudo timedatectl set-ntp true ###############################################################################