1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +00:00

install-packages colorized

This commit is contained in:
lunax 2020-10-12 11:06:16 +02:00
parent b0993b6dca
commit 6bfd6eb084

View file

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
source /etc/lsb-release source /etc/lsb-release
function echoGreen(){
echo -e "\e[32m"$1"\e[0m"
}
if [ $# -eq 1 ] && [ $1 == "-h" ]; then if [ $# -eq 1 ] && [ $1 == "-h" ]; then
exit exit
fi fi
@ -9,13 +12,13 @@ if [ 0 -eq $(id -u) ]; then
else else
if [ $DISTRIB_ID == "ManjaroLinux" ]; then if [ $DISTRIB_ID == "ManjaroLinux" ]; then
install_command='pacman -S --needed' install_command='pacman -S --needed'
echo Install bat echoGreen "Installing bat"
sudo $install_command bat sudo $install_command bat
echo Install kak echoGreen "Installing kak"
sudo $install_command kakoune sudo $install_command kakoune
echo Install Alacritty echoGreen "Installing Alacritty"
sudo $install_command alacritty sudo $install_command alacritty
echo Install HTTPie echoGreen "Installing HTTPie"
sudo $install_command httpie sudo $install_command httpie
fi fi
fi fi