Skip to content

Commit

Permalink
Changed the color codes to work with the new color functions
Browse files Browse the repository at this point in the history
  • Loading branch information
exarobibliologist committed Dec 22, 2024
1 parent 717feb9 commit b5c8fb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
11 changes: 2 additions & 9 deletions welcome
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ username=$(whoami)
###########################################################
# You could add a Tasklist to your BASH prompt like this! #
###########################################################
#taskline="${Color201}Task List${Color_Off}\n$(cat -n $HOME/BASH/Tasklist)"
#taskline="$(color 201)Task List$(reset)\n$(cat -n $HOME/BASH/Tasklist)"


###################
Expand All @@ -17,18 +17,11 @@ username=$(whoami)

#screenfetch

###########
# Fortune #
###########
#fortuneline="${Color201}Random Fortune Cookie${Color_Off}\n$(fortune)"

#echo -e "\n$fortuneline"
#echo -e "$fortuneline"

##################
# Welcome Prompt #
##################
welcome1
welcomeaptcount
welcomeontime
echo
}
6 changes: 3 additions & 3 deletions welcomeaptcount
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ aptcount=$(aptitude search "~U" | wc -l)
#List updates available
if [ "$aptcount" = "0" ] # if there are no updates available
then
echo -e "There are no known upgrades available for your system."
echo -e "$(color 3)There are no known upgrades available for your system.$(reset)"
elif [ "$aptcount" = "1" ] # if there is 1 update only
then
echo -e "There is ${Color208}1 known upgrade${Color_Off} available for your system.\nType ${Color014}rebash${Color_Off} to begin the update/upgrade process."
echo -e "There is $(bold 11)1 known upgrade$(reset) available for your system.\nType $(color 14)rebash$(reset) to begin the update/upgrade process."
else [ "$aptcount" != "1" ] # there is more than 1 update
echo -e "There are ${Color196}$aptcount known upgrades${Color_Off} available for your system.\nType ${Color014}rebash${Color_Off} to begin the update/upgrade process."
echo -e "There are $(bold 9)$aptcount known upgrades$(reset) available for your system.\nType $(color 14)rebash$(reset) to begin the update/upgrade process."
fi
}
2 changes: 1 addition & 1 deletion welcomeontime
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ function welcomeontime()
## Here's one way to display your total uptime!
ontime=$(uptime | sed 's/^[^u]*up *\([^,]*\),.*/\1/')

echo -e "Uptime = $ontime"
echo -e "$(bold 2)Uptime =$(reset)$(color 8) $ontime"
}

0 comments on commit b5c8fb3

Please sign in to comment.