Compare commits

..

No commits in common. "488b05e827265bbacf2a403ea2a44e4e891a2d61" and "e3055147e494fef13fc2e289dfdf7ee9656b750b" have entirely different histories.

4 changed files with 11 additions and 25 deletions

View File

@ -29,6 +29,7 @@ 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

15
cli.sh
View File

@ -6,17 +6,12 @@ main(){
_install_cli(){ _install_cli(){
local name=$1; local name=$1;
if $(! command -v "$name" &> /dev/null); then bash ./warn.sh "Installing cli tool: $name" # v---- this skips already installed stuff
bash ./warn.sh "Installing cli tool: $name" if (sudo pacman -S --needed "$name" --noconfirm >>/dev/null); then
if (pacman -S --needed "$name" --noconfirm >>/dev/null); then bash ./success.sh "Successfully installed cli tool: $name"
bash ./success.sh "Successfully installed cli tool: $name"
else
bash ./error.sh "Failed: $name"
fi
else else
bash ./warn.sh "Skipping: $name" bash ./error.sh "Failed: $name"
fi fi
} }
run_cli_install(){ run_cli_install(){
@ -35,8 +30,6 @@ 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

View File

@ -1,17 +1,9 @@
#!/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;
@ -21,8 +13,8 @@ main(){
} }
_update_pac(){ _update_pac(){
pacman -Fy --noconfirm sudo pacman -Fy --noconfirm
pacman -Syu --noconfirm sudo pacman -Syu --noconfirm
} }

View File

@ -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
chsh -s /bin/fish sudo chsh -s /bin/fish
usermod -s /bin/fish $USER sudo 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