Added question to select atom package installation
This commit is contained in:
parent
7506dfe3d5
commit
adfa273543
1 changed files with 12 additions and 3 deletions
11
setup.sh
11
setup.sh
|
@ -36,12 +36,21 @@ else
|
|||
echo '[INFO] Vim is not installed, could not install the plugins.'
|
||||
fi
|
||||
|
||||
# if atom is installed import configs
|
||||
# if atom is installed install packages
|
||||
if commandExists atom; then
|
||||
if commandExists apm; then
|
||||
if [ -f ~/.dotfiles/.atom/packages.list ]; then
|
||||
read -p "Do you want to install your atom packages? (y/n) " answer
|
||||
case ${answer:0:1} in
|
||||
y|Y )
|
||||
echo '[INFO] Installing atom packages, this can take a while...'
|
||||
apm install --packages-file ~/.dotfiles/.atom/packages.list
|
||||
;;
|
||||
* )
|
||||
echo '[INFO] Skipping atom package installation'
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
echo '[INFO] Cannot find packages.list skipping atom package installation.'
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue