Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(shell-config): add neofetch message #38

Merged
merged 4 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ultramarine/shell-config/anda.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project "pkg" {
arches = ["x86_64"]
rpm {
spec = "ultramarine-shell-config.spec"
sources = "."
}
}
}
2 changes: 1 addition & 1 deletion ultramarine/shell-config/ultramarine-shell-config.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Name: ultramarine-shell-config
Version: 1.2.4
Version: 1.2.5
Release: 1%{?dist}
Summary: Shell configuration for Ultramarine Linux
License: MIT
Expand Down
13 changes: 13 additions & 0 deletions ultramarine/shell-config/ultramarine-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ alias yay=_aur_helper
alias pacaur=_aur_helper
alias paru=_aur_helper

if ! [ -x "$(command -v neofetch)" ]; then
neofetch() {
echo 'Neofetch is not installed.'
echo 'While neofetch is available in Ultramarine, it does not come with our logo, and is no longer maintained.'
echo 'We recommend fastfetch instead, which may be installed using:'
echo
echo ' sudo dnf install fastfetch'
echo
echo 'You may disable this message by installing hyfetch-neofetch or neofetch.'
lleyton marked this conversation as resolved.
Show resolved Hide resolved
return 1
}
fi

# if ~/.config/starship.toml doesn't exist
if ! [ -f ~/.config/starship.toml ]; then
# export another starship config
Expand Down
Loading