|
|
@ -36,31 +36,10 @@ echo "MORE=$response"
|
|
|
|
MORE="$response"
|
|
|
|
MORE="$response"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$MORE" == "y" || "$MORE" == "Y" ]]; then
|
|
|
|
if [[ "$MORE" == "y" || "$MORE" == "Y" ]]; then
|
|
|
|
prompt "Preferred editor"
|
|
|
|
|
|
|
|
PGRM="$response"
|
|
|
|
|
|
|
|
echo "PGRM=$response"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$PGRM" == *"vim"* ]]; then
|
|
|
|
|
|
|
|
inf "The only *vim* package we support is nvim. Sorry!"
|
|
|
|
|
|
|
|
PGRM="neovim"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inf "Checking if we have ${PGRM} already.."
|
|
|
|
|
|
|
|
which ${PGRM}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$?" == "1" ]]; then
|
|
|
|
|
|
|
|
inf "Attempting to install ${PGRM}"
|
|
|
|
|
|
|
|
pacman -Sy ${PGRM} --noconfirm
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$PGRM" == "neovim" ]]; then
|
|
|
|
|
|
|
|
PGRM="nvim"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inf "When we open the file, please remove the leading # before any locales you need."
|
|
|
|
inf "When we open the file, please remove the leading # before any locales you need."
|
|
|
|
inf "Then, save and exit.\nPress enter."
|
|
|
|
inf "Then, save and exit.\nPress enter."
|
|
|
|
read
|
|
|
|
read
|
|
|
|
${PGRM} /etc/locale.gen
|
|
|
|
micro /etc/locale.gen
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
inf "Generating selected locales."
|
|
|
|
inf "Generating selected locales."
|
|
|
|