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
15
setup.sh
15
setup.sh
|
@ -36,12 +36,21 @@ else
|
||||||
echo '[INFO] Vim is not installed, could not install the plugins.'
|
echo '[INFO] Vim is not installed, could not install the plugins.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if atom is installed import configs
|
# if atom is installed install packages
|
||||||
if commandExists atom; then
|
if commandExists atom; then
|
||||||
if commandExists apm; then
|
if commandExists apm; then
|
||||||
if [ -f ~/.dotfiles/.atom/packages.list ]; then
|
if [ -f ~/.dotfiles/.atom/packages.list ]; then
|
||||||
echo '[INFO] Installing atom packages, this can take a while...'
|
read -p "Do you want to install your atom packages? (y/n) " answer
|
||||||
apm install --packages-file ~/.dotfiles/.atom/packages.list
|
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
|
else
|
||||||
echo '[INFO] Cannot find packages.list skipping atom package installation.'
|
echo '[INFO] Cannot find packages.list skipping atom package installation.'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue