Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print welcome message in git bash in Windows 7

Tags:

git

git-bash

How do I print a welcome message containing my git aliases when I open a git bash in Windows?

like image 521
chwi Avatar asked Nov 23 '25 07:11

chwi


1 Answers

The contents of /etc/motd are displayed on the terminal after an interactive login to the Bash shell (bash --login). If the version of Git for Windows you have omitted the file /etc/motd, create one with cat or your favorite editor.

# == Git Bash on Windows ==
#  - /etc/motd  = Message of the Day 
# - - - - - - - - - - - - -    
cat > /etc/motd
Welcome to the Git Bash Shell
- Try "pwd -W" versus "pwd -L"
- - - - - - - - -

CTRL-D

like image 157
LantzR Avatar answered Nov 24 '25 22:11

LantzR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!