vianix: Install fish instead of zsh

This commit is contained in:
clsty
2025-11-03 20:25:23 +08:00
parent efd44c421b
commit f368382765
+6 -6
View File
@@ -48,8 +48,8 @@ function install_curl(){
echo "Please install it by yourself and then retry." echo "Please install it by yourself and then retry."
return 1 return 1
} }
function install_zsh(){ function install_fish(){
local cmd=zsh local cmd=fish
if [[ "$OS_DISTRO_ID" == "arch" || "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then if [[ "$OS_DISTRO_ID" == "arch" || "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
x sudo pacman -Syu x sudo pacman -Syu
@@ -104,10 +104,10 @@ if ! command -v curl >/dev/null 2>&1;then
showfun install_curl showfun install_curl
v install_curl v install_curl
fi fi
if ! command -v zsh >/dev/null 2>&1;then if ! command -v fish >/dev/null 2>&1;then
echo -e "${STY_YELLOW}[$0]: \"zsh\" not found.${STY_RST}" echo -e "${STY_YELLOW}[$0]: \"fish\" not found.${STY_RST}"
showfun install_zsh showfun install_fish
v install_zsh v install_fish
fi fi
if ! command -v swaylock >/dev/null 2>&1;then if ! command -v swaylock >/dev/null 2>&1;then
echo -e "${STY_YELLOW}[$0]: \"swaylock\" not found.${STY_RST}" echo -e "${STY_YELLOW}[$0]: \"swaylock\" not found.${STY_RST}"