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
|
|
|
|
cd $(dirname $0)
|
|
|
|
PROJECT_DIR=$(pwd)
|
|
|
|
|
2015-11-03 23:04:57 +00:00
|
|
|
init_paths_and_vars
|
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
install_vim_src=false
|
2015-11-03 23:04:57 +00:00
|
|
|
is_installed "vim-from-source"
|
|
|
|
if prompt_yn "Compile vim?" ; then
|
|
|
|
install_vim_src=true
|
2013-08-08 03:23:13 +00:00
|
|
|
fi
|
|
|
|
install_vim_settings=false
|
|
|
|
if ! is_installed "vim-settings" || prompt_yn "Reinstall vim-settings?" ; then
|
|
|
|
install_vim_settings=true
|
|
|
|
fi
|
|
|
|
install_sfdc=false
|
|
|
|
is_installed "salesforce"
|
|
|
|
if prompt_yn "Install Salesforce tools?" ; then
|
|
|
|
install_sfdc=true
|
|
|
|
fi
|
2016-06-07 00:16:47 +00:00
|
|
|
install_mosh=false
|
|
|
|
is_installed "mosh"
|
|
|
|
if prompt_yn "Install Mosh from source?" ; then
|
|
|
|
install_mosh=true
|
|
|
|
fi
|
|
|
|
install_tmux=false
|
|
|
|
is_installed "tmux"
|
|
|
|
if prompt_yn "Install tmux from source?" ; then
|
|
|
|
install_tmux=true
|
|
|
|
fi
|
2015-11-03 23:04:57 +00:00
|
|
|
install_fish=false
|
2016-02-12 02:35:43 +00:00
|
|
|
install_ohmyfish=false
|
|
|
|
install_fisherman=false
|
2015-11-03 23:04:57 +00:00
|
|
|
is_installed "fish"
|
2016-02-12 02:35:43 +00:00
|
|
|
is_installed "oh-my-fish"
|
|
|
|
is_installed "fisherman"
|
2015-11-03 23:04:57 +00:00
|
|
|
if prompt_yn "Install fish?" ; then
|
|
|
|
install_fish=true
|
2016-02-12 02:35:43 +00:00
|
|
|
|
|
|
|
if prompt_yn "Install oh-my-fish?" ; then
|
|
|
|
install_ohmyfish=true
|
|
|
|
elif prompt_yn "Install Fisherman?" ; then
|
|
|
|
install_fisherman=true
|
|
|
|
fi
|
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'
|
|
|
|
|
|
|
|
if $install_vim_src ; then
|
|
|
|
recipe 'compile-install-vim'
|
|
|
|
set_installed "vim-from-source"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_vim_settings ; then
|
|
|
|
recipe 'vim-settings'
|
|
|
|
set_installed 'vim-settings'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_sfdc ; then
|
|
|
|
recipe 'salesforce'
|
|
|
|
set_installed 'salesforce'
|
|
|
|
fi
|
|
|
|
|
2016-06-07 00:16:47 +00:00
|
|
|
if $install_mosh ; then
|
|
|
|
recipe 'mosh'
|
|
|
|
set_installed 'mosh-install'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_tmux ; then
|
|
|
|
recipe 'tmux-install'
|
|
|
|
set_installed 'tmux'
|
|
|
|
fi
|
|
|
|
|
2015-11-03 23:04:57 +00:00
|
|
|
if $install_fish ; then
|
|
|
|
if ! command_exist fish ; then
|
|
|
|
recipe 'fish-install'
|
|
|
|
fi
|
|
|
|
if command_exist fish ; then
|
|
|
|
set_installed 'fish'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2016-02-12 02:35:43 +00:00
|
|
|
if $install_ohmyfish ; then
|
|
|
|
recipe 'oh-my-fish'
|
|
|
|
set_installed 'oh-my-fish'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_fisherman ; then
|
|
|
|
recipe 'fisherman'
|
|
|
|
set_installed 'fisherman'
|
|
|
|
fi
|
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
### Show the Finished banner
|
|
|
|
finished
|
|
|
|
|
|
|
|
# vim: set tabstop=2:softtabstop=2:shiftwidth=2:expandtab
|