Compare commits
4 Commits
e3055147e4
...
488b05e827
Author | SHA1 | Date | |
---|---|---|---|
488b05e827 | |||
d7c4c9e63b | |||
56d956bf7e | |||
fc1080a294 |
1
apps.sh
1
apps.sh
@ -29,7 +29,6 @@ run_apps_install(){
|
|||||||
"com.valvesoftware.Steam"
|
"com.valvesoftware.Steam"
|
||||||
"com.mattjakeman.ExtensionManager"
|
"com.mattjakeman.ExtensionManager"
|
||||||
"org.gnome.design.Emblem"
|
"org.gnome.design.Emblem"
|
||||||
"de.philippun1.turtle"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for i in "${flatpak_apps[@]}"; do
|
for i in "${flatpak_apps[@]}"; do
|
||||||
|
19
cli.sh
19
cli.sh
@ -6,12 +6,17 @@ main(){
|
|||||||
|
|
||||||
_install_cli(){
|
_install_cli(){
|
||||||
local name=$1;
|
local name=$1;
|
||||||
bash ./warn.sh "Installing cli tool: $name" # v---- this skips already installed stuff
|
if $(! command -v "$name" &> /dev/null); then
|
||||||
if (sudo pacman -S --needed "$name" --noconfirm >>/dev/null); then
|
bash ./warn.sh "Installing cli tool: $name"
|
||||||
bash ./success.sh "Successfully installed cli tool: $name"
|
if (pacman -S --needed "$name" --noconfirm >>/dev/null); then
|
||||||
else
|
bash ./success.sh "Successfully installed cli tool: $name"
|
||||||
bash ./error.sh "Failed: $name"
|
else
|
||||||
fi
|
bash ./error.sh "Failed: $name"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
bash ./warn.sh "Skipping: $name"
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_cli_install(){
|
run_cli_install(){
|
||||||
@ -30,6 +35,8 @@ run_cli_install(){
|
|||||||
"nodejs" # <-- hawk tuah
|
"nodejs" # <-- hawk tuah
|
||||||
"npm" # <-- need unfortunately for work stuff
|
"npm" # <-- need unfortunately for work stuff
|
||||||
"zellij" # <-- multplexer
|
"zellij" # <-- multplexer
|
||||||
|
"lazygit"
|
||||||
|
"yazi-bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
for i in "${cli_tools[@]}"; do
|
for i in "${cli_tools[@]}"; do
|
||||||
|
12
install.sh
12
install.sh
@ -1,9 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# TODO should be applicable to other package managers (dnf, apt, ..)
|
# TODO should be applicable to other package managers (dnf, apt, ..)
|
||||||
|
# v--- this is for potential future ideas
|
||||||
|
# flatpak uninstall $(flatpak list --columns=application | grep -i turtle)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
|
if [[ "$(whoami)" != "root" ]];then
|
||||||
|
bash ./error.sh "Must be root (current: $USER)";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
_update_pac
|
_update_pac
|
||||||
bash ./dots.sh;
|
bash ./dots.sh;
|
||||||
bash ./cli.sh;
|
bash ./cli.sh;
|
||||||
@ -13,8 +21,8 @@ main(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
_update_pac(){
|
_update_pac(){
|
||||||
sudo pacman -Fy --noconfirm
|
pacman -Fy --noconfirm
|
||||||
sudo pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
xdg-settings set default-web-browser io.github.zen_browser.zen.desktop
|
xdg-settings set default-web-browser io.github.zen_browser.zen.desktop
|
||||||
|
|
||||||
if [[ $(which $SHELL) != "/bin/fish" ]]; then
|
if [[ $(which $SHELL) != "/bin/fish" ]]; then
|
||||||
sudo chsh -s /bin/fish
|
chsh -s /bin/fish
|
||||||
sudo usermod -s /bin/fish $USER
|
usermod -s /bin/fish $USER
|
||||||
fish
|
fish
|
||||||
echo "Set fish shell, may need to login again..."
|
echo "Set fish shell, may need to login again..."
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user