refactor: move alias definitions inside UID check

This commit is contained in:
2025-05-28 21:17:32 +02:00
parent cd03e5d30b
commit 6627e61613
2 changed files with 17 additions and 4 deletions

View File

@ -1,5 +1,8 @@
alias c='clear' alias c='clear'
alias apt='sudo apt'
alias apt-get='sudo apt-get'
alias ll='ls -lah' alias ll='ls -lah'
alias cat='batcat' alias cat='batcat'
if [ ! $UID -eq 0 ]; then
alias apt='sudo apt'
alias apt-get='sudo apt-get'
fi

14
install
View File

@ -2,13 +2,20 @@
set -e set -e
echo
echo "[+] Updating System Packages..." echo "[+] Updating System Packages..."
echo
apt update -qq apt update -qq
echo
echo "[+] Upgrading System Packages..." echo "[+] Upgrading System Packages..."
apt upgrade -yqq echo
apt upgrade -yqq
echo
echo "[+] Installing Dependencies..." echo "[+] Installing Dependencies..."
echo
apt install -yqq \ apt install -yqq \
zsh \ zsh \
curl \ curl \
@ -17,7 +24,10 @@ apt install -yqq \
bat \ bat \
btop btop
echo
echo "[+] Installing Oh My Zsh..." echo "[+] Installing Oh My Zsh..."
echo
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cp .zshenv.template .zshenv cp .zshenv.template .zshenv