refactor: move alias definitions inside UID check
This commit is contained in:
@ -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
14
install
@ -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
|
||||||
|
Reference in New Issue
Block a user