fastfetch :)

This commit is contained in:
Strix 2023-10-14 22:38:09 +02:00
parent f7340b1397
commit af7c33d567
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 17 additions and 5 deletions

View file

@ -24,7 +24,7 @@ alias get_rust='. $HOME/.cargo/env'
alias s="title $HOST && cmatrix -rs && clear"
# COSMETICS
if [ $_ZSH_PREF_NO_PFETCH != 1 ]; then pfetch; fi
if [ $_ZSH_PREF_NO_PFETCH != 1 ]; then fastfetch; fi
else
PS1="$(whoami)@$(cat /etc/hostname) $ "

View file

@ -1,11 +1,23 @@
#!/bin/sh
$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \
zsh
zsh \
cmake # for fastfetch
# install pfetch
[ -d /tmp/pfetch ] || $SUDO bash -c \
"git clone https://github.com/dylanaraps/pfetch.git /tmp/pfetch && cd /tmp/pfetch && (chmod a+x ./pfetch && $SUDO mv ./pfetch /usr/local/bin/pfetch)"
# install fastfetch
[ -d /tmp/fastfetch ] || \
git clone https://github.com/LinusDierheimer/fastfetch /tmp/fastfetch
if [ ! -f /tmp/fastfetch/build/fastfetch ]; then
pushd /tmp/fastfetch
mkdir -p build
pushd build
cmake ..
cmake --build . --target fastfetch
$SUDO mv fastfetch /usr/local/bin/fastfetch
popd
popd
fi
# install omz
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed"