From e6126d546923da7d9d8717429c24ccce59251d35 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Tue, 25 Jun 2024 22:07:12 +0330 Subject: [PATCH] Add alias hys2 --- menu.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/menu.sh b/menu.sh index c5f9375..23f78bb 100644 --- a/menu.sh +++ b/menu.sh @@ -19,6 +19,12 @@ if ! command -v jq &> /dev/null || ! command -v qrencode &> /dev/null || ! comma apt update && apt upgrade -y && apt install jq qrencode curl pwgen uuid-runtime python3 python3-pip -y fi +# Add alias 'hys2' for Hysteria2 +if ! grep -q "alias hys2='bash <(curl https://raw.githubusercontent.com/H-Return/Hysteria2/main/menu.sh)'" ~/.bashrc; then + echo "alias hys2='bash <(curl https://raw.githubusercontent.com/H-Return/Hysteria2/main/menu.sh)'" >> ~/.bashrc + source ~/.bashrc +fi + # Function to get system information get_system_info() { OS=$(lsb_release -d | awk -F'\t' '{print $2}')