1
0
Fork 0

[AUTOCONFIG] Add neovim autoconfig from .env

This commit is contained in:
Florian RICHER 2022-01-04 20:43:30 +01:00
parent 6e0b581da6
commit 93675f81a9
5 changed files with 79 additions and 129 deletions

22
scripts/common.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
command_exists () {
type "$1" &> /dev/null
}
install_package () {
if [[ "$PM" == 'pacman' ]]; then
sudo pacman -S --noconfirm "$@"
echo "[INFO] Finished to install $@"
else
echo '[ERROR] Package manager not supported' >&2
fi
}
remove_package () {
if [[ "$PM" == 'pacman' ]]; then
sudo pacman -R --noconfirm "$@"
echo "[INFO] Finished to remove $@"
else
echo '[ERROR] Package manager not supported' >&2
fi
}