You are Here:
Linux Lite 6.2 RC1 Released - See Release Announcements



Welcome message in bashrc

Author (Read 1054 times)

0 Members and 3 Guests are viewing this topic.

Re: Welcome message in bashrc
« Reply #2 on: June 25, 2022, 07:52:05 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8496
    Posts
  • Reputation: 787
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 6.0 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
This part of the Bash command is custom:

Code: [Select]
# Linux Lite Custom Terminal
LLVER=$(awk '{print}' /etc/llver)

echo -e "Welcome to $LLVER ${USER}"
echo " "
date "+%A %d %B %Y, %T"
free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}'
echo "Support - [url]https://www.linuxliteos.com/forums/[/url] (Right click, Open Link)"
echo " "

Feel free to remove it or code it to your liking.
 

Welcome message in bashrc
« Reply #1 on: June 22, 2022, 05:36:16 AM »
 

ROMAINPC

  • New to Forums
  • *
  • 1
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit
Hello,


I recently had an issue with a program and the bash welcome message.
With a VScode extension which configure things by running a bash command and fetching the first few lines. This extension didn't work for me until I commented out the bashrc welcome message.

Maybe the extension is using the wrong method.
But I wanted to know if there were alternatives to display the welcome message? How does Ubuntu for example? Is there a conventional argument to indicate whether or not to display the message?


Best regards,
Romain.
 

 

-->
X Close Ad

Linux Lite 6.2 RC1 Released - See Release Announcements