Skip to content

Commit 0824bd8

Browse files
authored
Update install.sh
1 parent 96cab0a commit 0824bd8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: install.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,23 @@ cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H.%M.%S) && cp -Rf Configs/H
3333
sudo cp -Rf Configs/System/. / && sudo cp -Rf Configs/Home/. /root/
3434
sleep 2
3535
echo
36+
echo "Adding Fastfetch to .bashrc"
37+
echo
38+
# Check if the line exists in ~/.bashrc, if not add it
39+
if ! grep -Fxq 'fastfetch' "$HOME/.bashrc"; then
40+
echo '' >> "$HOME/.bashrc"
41+
echo 'fastfetch' >> "$HOME/.bashrc"
42+
fi
43+
sleep 2
44+
echo
3645
echo "Applying OhMy-Posh to Bash"
3746
echo
3847
# Check if the folder exists, if not create it and download the file
3948
if [ ! -d "$HOME/.config/ohmyposh" ]; then
4049
mkdir -p "$HOME/.config/ohmyposh"
4150
fi
4251
curl -o "$HOME/.config/ohmyposh/tokyonight_storm.omp.json" https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/tokyonight_storm.omp.json
43-
52+
sleep 2
4453
# Check if the line exists in ~/.bashrc, if not add it
4554
if ! grep -Fxq 'eval "$(oh-my-posh init bash --config $HOME/.config/ohmyposh/tokyonight_storm.omp.json)"' "$HOME/.bashrc"; then
4655
echo '' >> "$HOME/.bashrc"

0 commit comments

Comments
 (0)