Saturday, December 28, 2013

How to add message on your Terminal




Terminal မွာ msg ထည့္နည္းေလးပါ
အရင္ဆံုး terminal ကုိဖြင့္လိုက္ပါ
ျပီးရင္ေတာ့ apt-get install toilet
ကိုရိုက္ျပီး Enter ေခါက္လိုက္ေပါ့ေနာ္
ဒါဆိုရင္ install လုပ္ေနပါလိမ့္မယ္
install လုပ္လို႔ျပီးျပီဆိုရင္ေတာ့ Home ထဲကိုသြား
View ကေန Show hidden filesကို Click လုပ္
ျပီးရင္ ./bashrc ဆိုတဲ့ဖိုင္ကို leafpad နဲဖြင့္လိုက္ပါ
ျပီးရင္ေတာ့ leafpad စာေတြရဲ႕ေအာက္ဆံုးမွာ
ေအာက္က command ေတြကို ကူးထည့္လိုက္ပါ



# color Variables (g = green)
g='\E[32m'
endc='\E[Om'
# Custom Echo
echo -e "${g}

                                          ____     
                                          |    |
                    _______          | () |                        /        _____  _  _
__      __   __|__   __| ___   | __ | ___    ___   __||         |_   _|| |/ /
\ \  /\ / /   /  \     | |  /     __||     ||_   \   |    | /       |  __    | |   |   /
 \ V  V /  /  ^ \    | | (  ( __   | () | _||> | | $ | |  <> ||__| _| |   |   \ 
  \_/\_/ /__/\__\  |_|  \ ___| |___||___ / |___||____|     |___|   |_|\_\
                                                                   ___||
               2013-2014                                    |       |
         Wellcome to Happy New Year                |  ()  |
                                                                  |____|

"
#The End


ျပီးရင္ Save ျပီး termianl ကိုျပန္ဖြင့္ၾကည့္လိုက္
အိုစေကျဖစ္ေနျပီ.... :-)


0 comments:

Post a Comment