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:
parent
b0993b6dca
commit
6bfd6eb084
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue