-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_btop.sh
executable file
·56 lines (51 loc) · 2.16 KB
/
install_btop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
if ! test -f checks/check_system.sh; then
eval "$(curl -fsSL https://raw.githubusercontent.com/excited-bore/dotfiles/main/checks/check_system.sh)"
else
. ./checks/check_system.sh
fi
if ! type update-system &> /dev/null; then
if ! test -f aliases/.bash_aliases.d/update-system.sh; then
eval "$(curl -fsSL https://raw.githubusercontent.com/excited-bore/dotfiles/main/aliases/.bash_aliases.d/update-system.sh)"
else
. ./aliases/.bash_aliases.d/update-system.sh
fi
fi
if ! test -f aliases/.bash_aliases.d/package_managers.sh; then
eval "$(curl -fsSL https://raw.githubusercontent.com/excited-bore/dotfiles/main/aliases/.bash_aliases.d/package_managers.sh)"
else
source aliases/.bash_aliases.d/package_managers.sh
fi
if test -z $SYSTEM_UPDATED; then
readyn -Y "CYAN" -p "Update system?" updatesysm
if test $updatesysm == "y"; then
update-system
fi
fi
if ! type btop &> /dev/null; then
readyn -p "Install btop?" sym2
if test "$sym2" == "y"; then
#reade -Q "CYAN" -i "btop" -p "Which one? [Btop/bpytop/bashtop]: " "bpytop bashtop" sym2
#if test "$sym2" == "btop"; then
if test "$distro_base" == "Debian" || test "$distro_base" == "Arch"; then
${pac_ins} btop
fi
#elif test "$sym2" == "bpytop"; then
# if test $distro_base == "Debian"; then
# eval "$pac_ins bpytop"
# elif test $distro == "Arch" || test $distro == "Manjaro"; then
# eval "$pac_ins bpytop"
# fi
#elif test "$sym2" == "bashtop"; then
# if type add-apt-repository &> /dev/null && [[ $(check-ppa ppa:bashtop-monitor/bashtop) =~ 'OK' ]]; then
# sudo add-apt-repository ppa:bashtop-monitor/bashtop
# sudo apt update
# eval "$pac_ins bashtop"
# elif test "$distro" == "Arch" || test "$distro" == "Manjaro"; then
# eval "$pac_ins bashtop"
# else
# git clone https://github.com/aristocratos/bashtop.git $TMPDIR
# (cd $TMPDIR/bashtop && sudo make install)
# fi
#fi
fi
fi