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."
return 1
}
function install_zsh(){
local cmd=zsh
function install_fish(){
local cmd=fish
if [[ "$OS_DISTRO_ID" == "arch" || "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
x sudo pacman -Syu
@@ -104,10 +104,10 @@ if ! command -v curl >/dev/null 2>&1;then
showfun install_curl
v install_curl
fi
if ! command -v zsh >/dev/null 2>&1;then
echo -e "${STY_YELLOW}[$0]: \"zsh\" not found.${STY_RST}"
showfun install_zsh
v install_zsh
if ! command -v fish >/dev/null 2>&1;then
echo -e "${STY_YELLOW}[$0]: \"fish\" not found.${STY_RST}"
showfun install_fish
v install_fish
fi
if ! command -v swaylock >/dev/null 2>&1;then
echo -e "${STY_YELLOW}[$0]: \"swaylock\" not found.${STY_RST}"