aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetup.sh29
1 files changed, 23 insertions, 6 deletions
diff --git a/setup.sh b/setup.sh
index 3eeb729..c39fa4a 100755
--- a/setup.sh
+++ b/setup.sh
@@ -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}