ArchSetupScripts/post_setup.sh

30 lines
845 B
Bash
Executable File

#!/bin/bash
if [[ "$(whoami)" != "root" ]];then
bash ./error.sh "Must be root (current: $USER)";
exit 1;
fi
xdg-settings set default-web-browser io.github.zen_browser.zen.desktop
if [[ $(which $SHELL) != "/bin/fish" ]]; then
chsh -s /bin/fish
usermod -s /bin/fish $USER
fish
echo "Set fish shell, may need to login again..."
else
echo "Fish shell already in use... skipping"
fi
############### YAZI CONFIGS (temporary) ############
git clone https://github.com/BennyOe/tokyo-night.yazi.git ~/.config/yazi/flavors/tokyo-night.yazi
path="$HOME/.config/yazi/theme.toml"
if [[ ! -e $path ]];then
bash ./warn.sh "Updating yazi file"
echo "[flavor]" >> $path
echo "use = \"tokyo-night\"" >> $path
fi
############### TMUX CONFIGS (temporary) ############
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm