Tuesday, May 16, 2017

How to get a colored bash and change the title of the current terminal tab



buka teks editor,

sudo nano .bashrc

tambah dua line ini,

PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] ' #colour



PROMPT_COMMAND='echo -en "\033]0;9m2zak Terminal\a"'      #terminal 
pada perkataan 9m2zak Terminal tu, tukarlah ke apa-apa perkataan pilihan anda

kemudian save dan

source .bashrc

tutup terminal dan buka balik, seelok-eloknya reboot pi3 anda. Have fun...


No comments:

Testing aprs yaesu FT2DR