diff options
| author | Sylvain Herlédan <sylvain.herledan@hrafnagud.info> | 2017-06-03 15:51:45 +0200 |
|---|---|---|
| committer | Sylvain Herlédan <sylvain.herledan@hrafnagud.info> | 2017-06-03 15:51:45 +0200 |
| commit | 32f855cf22a915097102dea5088ad2126694bd92 (patch) | |
| tree | 82766d27fabba5e7744f68d675435fd1b90e16a1 /setup.sh | |
| parent | 67c379658432bca5a13eb0f3dcd8f1db16a54f20 (diff) | |
| download | dotfiles-32f855cf22a915097102dea5088ad2126694bd92.tar.gz dotfiles-32f855cf22a915097102dea5088ad2126694bd92.tar.bz2 dotfiles-32f855cf22a915097102dea5088ad2126694bd92.zip | |
Improve installation script output.
Diffstat (limited to 'setup.sh')
| -rwxr-xr-x | setup.sh | 29 |
1 files changed, 23 insertions, 6 deletions
@@ -16,7 +16,9 @@ ARGS="${@}"; . "${PROGDIR}/lib/colors.sh" . "${PROGDIR}/lib/functions.sh" -function install_tup() +# Tup installation ------------------------------------------------------------ +# ----------------------------------------------------------------------------- +install_tup() { local tools_dir="${1}"; shift; local install_dir="${1}"; shift; @@ -34,7 +36,9 @@ function install_tup() fi } -function install_st() +# St installation ------------------------------------------------------------- +# ----------------------------------------------------------------------------- +install_st() { local tools_dir="${1}"; shift; local install_dir="${1}"; shift; @@ -167,12 +171,11 @@ create_symlinks() # Directory creation ---------------------------------------------------------- # ----------------------------------------------------------------------------- -function create_dirs() +create_dirs() { local root_dir="${1}"; shift; mkdir -p "${root_dir}/.local/tools" - mkdir -p "${root_dir}/.local/data" mkdir -p "${root_dir}/.local/config" mkdir -p "${root_dir}/.local/config/vim/colors" mkdir -p "${root_dir}/.local/config/dunst" @@ -192,7 +195,7 @@ function create_dirs() # Copy configuration files ---------------------------------------------------- # ----------------------------------------------------------------------------- -function copy_files() +copy_files() { local src_dir="${1}"; shift; local dst_dir="${1}"; shift; @@ -221,7 +224,9 @@ function copy_files() configure_rtorrent "${src_dir}" "${dst_dir}" } -function configure_xdg() +# Set paths for applications that follow the XDG specifications. ------------- +# ----------------------------------------------------------------------------- +configure_xdg() { local install_dir="${1}"; shift; local user_dirs="${install_dir}/.config/user-dirs.dirs"; @@ -302,14 +307,26 @@ main() create_dirs "${HOME}" copy_files "${PROGDIR}" "${HOME}" + echo -e "${YELLOW}=>${NO_COLOR}${BOLD} Installing tup...${NO_COLOR}" install_tup "${tools_dir}" "${local_dir}" + echo -e "${YELLOW}=>${NO_COLOR}${BOLD} Installing st...${NO_COLOR}" install_st "${tools_dir}" "${local_dir}" + echo -e "${YELLOW}=>${NO_COLOR}${BOLD} Installing dein...${NO_COLOR}" install_dein "${tools_dir}" "${local_dir}" + echo -e "${YELLOW}=>${NO_COLOR}${BOLD} Installing ohmyzsh...${NO_COLOR}" install_oh_my_zsh "${tools_dir}" "${local_dir}" + echo -e "${YELLOW}=>${NO_COLOR}${BOLD} Installing sxiv...${NO_COLOR}" install_sxiv "${tools_dir}" "${local_dir}" + echo -e "${YELLOW}=>${NO_COLOR}${BOLD} Finalizing...${NO_COLOR}" create_symlinks "${cfg_dir}" "${HOME}" configure_xdg "${HOME}" + + echo -e "${YELLOW}=>${NO_COLOR}${BOLD} Done.${NO_COLOR}\n" + echo -e "In order to initialize plugins, run the following command the " \ + "first time you start vim:" + echo -e "\t:call dein#install()" + echo } main ${ARGS} |
