2013-08-08 03:23:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Initialization - DO NOT REMOVE
|
|
|
|
. helpers/initialize
|
|
|
|
|
|
|
|
##############################################################
|
|
|
|
### Customizations start here ################################
|
|
|
|
##############################################################
|
|
|
|
|
|
|
|
# Get current directory for future use in links
|
2019-11-14 18:20:42 +00:00
|
|
|
cd "$(dirname "$0")" || { echo "Could not change directory to $0"; exit 1;}
|
2013-08-08 03:23:13 +00:00
|
|
|
PROJECT_DIR=$(pwd)
|
2019-11-14 18:20:42 +00:00
|
|
|
export PROJECT_DIR
|
2013-08-08 03:23:13 +00:00
|
|
|
|
2015-11-03 23:04:57 +00:00
|
|
|
init_paths_and_vars
|
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
build_vim=false
|
|
|
|
is_installed "build-vim"
|
|
|
|
if prompt_yn "Build Vim from source?" ; then
|
|
|
|
build_vim=true
|
2013-08-08 03:23:13 +00:00
|
|
|
fi
|
2017-03-23 22:42:54 +00:00
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
install_sfdc=false
|
2017-03-23 22:42:54 +00:00
|
|
|
if is_installed "salesforce" || prompt_yn "Install Salesforce tools?" ; then
|
2013-08-08 03:23:13 +00:00
|
|
|
install_sfdc=true
|
|
|
|
fi
|
2017-03-23 22:42:54 +00:00
|
|
|
|
|
|
|
build_mosh=false
|
|
|
|
if ! command_exist 'mosh' && prompt_yn "Install Mosh from source?" ; then
|
|
|
|
build_mosh=true
|
2016-06-07 00:16:47 +00:00
|
|
|
fi
|
2017-03-23 22:42:54 +00:00
|
|
|
|
|
|
|
build_tmux=false
|
|
|
|
if ! command_exist 'tmux' && prompt_yn "Install tmux from source?" ; then
|
|
|
|
build_tmux=true
|
2016-06-07 00:16:47 +00:00
|
|
|
fi
|
2017-03-23 22:42:54 +00:00
|
|
|
|
|
|
|
build_fish=false
|
|
|
|
if ! command_exist 'fish' && prompt_yn "Install fish?" ; then
|
|
|
|
build_fish=true
|
2015-11-03 23:04:57 +00:00
|
|
|
fi
|
2013-08-08 03:23:13 +00:00
|
|
|
|
|
|
|
### Run recipes
|
|
|
|
recipe 'dotfiles'
|
|
|
|
recipe 'bin'
|
|
|
|
recipe 'git'
|
2017-03-23 22:42:54 +00:00
|
|
|
recipe 'vim-settings'
|
2013-08-08 03:23:13 +00:00
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
if $build_vim ; then
|
|
|
|
recipe 'build-vim'
|
|
|
|
set_installed "build-vim"
|
2013-08-08 03:23:13 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_sfdc ; then
|
|
|
|
recipe 'salesforce'
|
|
|
|
set_installed 'salesforce'
|
|
|
|
fi
|
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
if $build_mosh ; then
|
|
|
|
recipe 'build-mosh'
|
|
|
|
set_installed 'build-mosh'
|
2016-06-07 00:16:47 +00:00
|
|
|
fi
|
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
if $build_tmux ; then
|
|
|
|
recipe 'build-tmux'
|
|
|
|
set_installed 'build-tmux'
|
2015-11-03 23:04:57 +00:00
|
|
|
fi
|
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
if $build_fish ; then
|
|
|
|
recipe 'build-fish'
|
|
|
|
set_installed "build-fish"
|
2016-02-12 02:35:43 +00:00
|
|
|
fi
|
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
if command_exist 'fish' || is_installed 'build-fish' ; then
|
|
|
|
recipe 'fish'
|
2016-02-12 02:35:43 +00:00
|
|
|
fi
|
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
### Show the Finished banner
|
|
|
|
finished
|
|
|
|
|
|
|
|
# vim: set tabstop=2:softtabstop=2:shiftwidth=2:expandtab
|