fastfetch :)

This commit is contained in:
Didier Slof 2023-03-07 10:06:27 +01:00
parent bb6919ad81
commit 9875954f4a
Signed by: didier
GPG key ID: 01E71F18AA4398E5
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"