We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f057b2 commit 15086bdCopy full SHA for 15086bd
update-motd.d/10-welcome
@@ -21,6 +21,7 @@ function findDeviceModel (){
21
deviceColor="30;48;5;249"
22
greetingsColor="30;38;5;103"
23
userColor="30;48;5;67"
24
+codenameColor="30;38;5;108"
25
me=$(logname)
26
findDeviceModel
27
@@ -29,7 +30,8 @@ deviceLabel=" $(color $deviceColor " $deviceName ")"
29
30
31
# Greetings
32
me="$(color $userColor " $me ")"
-greetings="$(color $greetingsColor " ⮞ Welcome »") $me\n"
33
+codename="$(grep 'VERSION_CODENAME' /etc/os-release | cut -d '=' -f 2)"
34
+greetings="$(color $greetingsColor " ⮞ Welcome »") $me $(color $greetingsColor To) $(color $codenameColor $codename)\n"
35
greetings="$greetings$(color $greetingsColor " ⮞ $(date +"%a %b %d %Y, %I:%M:%S %p")")\n"
36
37
# OS
0 commit comments