Forum Codernate
Config bashrc for terminal - Printable Version

+- Forum Codernate (https://forum.codernate.org)
+-- Forum: Pemrograman (https://forum.codernate.org/forumdisplay.php?fid=3)
+--- Forum: Pemrograman Desktop (https://forum.codernate.org/forumdisplay.php?fid=23)
+---- Forum: Bash (https://forum.codernate.org/forumdisplay.php?fid=50)
+---- Thread: Config bashrc for terminal (/showthread.php?tid=66)



Config bashrc for terminal - scriptKiddie - 08-13-2017

Assalamualaikum warahmatulahi wabarakatu..
Kembali lagi dengan aku desaigner tertampaaaannn sepanjang sejarah dongeng..

NEXT >>

Quote:Masuk terminal dan ketikan :
Code:
nano .bashrc
ATAU
Code:
gedit .bashrc

Lalu pastekan code di bawah, tepatanya di bawah code fi setelah itu save, Kalau kamu ngak tau cara save silahkan klik ini.


Quote:Jika kamu suka banyak warna :
Code:
if [[ ${EUID} == 0 ]] ; then
PS1='\e[1;31;48;5;234m\u \e[38;5;240mon \e[1;38;5;28;48;5;234m\h \e[38;5;54m\d \@\e[0m\n\e[0;31;48;5;234m[\w] \e[1m\$\e[0m '
else
PS1='\e[1;38;5;56;48;5;234m\u \e[38;5;240mon \e[1;38;5;28;48;5;234m\h \e[38;5;54m\d \@\e[0m\n\e[0;38;5;56;48;5;234m[\w] \e[1m\$\e[0m '
fi
Quote:[Image: u5PROauGRHmnCoveteH2dw.png]

Jika kamu suka design simple :
Code:
PS1='\[\e[0m\]\[\e[48;5;236m\]\[\e[38;5;197m\]\u\[\e[38;5;197m\]@\[\e[38;5;197m\]\h\[\e[38;5;105m\] \[\e[38;5;221m\]\w\[\e[38;5;221m\]\[\e[38;5;105m\]\[\e[0m\]\[\e[38;5;236m\]\342\226\214\342\226\214\342\226\214\[\e[0m\]'
Quote:[Image: ziUY-PTLTlKoLUH3e_vlQA.png]

Jika Suka dengan design Elegan :
Code:
PS1="\[\e[47m\]\[\e[1;30m\]*\[\e[0m\]\[\e[00;36m\][\u]\n\[\e[47m\]\[\e[1;30m\]\#\[\e[0m\]  └── \[\e[0m\]\[\e[0;37m\][\h] \[\e[0m\]\n     └── \[\e[0m\]\[\e[1;33m\]>>\[\e[0m\]
Quote:
[Image: gcstIa_1RF6h1oSYPwVWzg.png]

Oke, mungkin itu aja, kalau kamu punya desain bash terminal yg kerryeenn buangetttt Cool . di taruh di kolom post di bawah ya!!
Ilmu itu di bagi coy!! #eh kalau di bagi hasil akhirnya dikit dong, Tzerah lu deh Tong ... Dodgy


RE: Config bashrc for terminal - JLCNate - 08-13-2017

Punya ku kayak gini ajah


Code:
PS1="\n \[\033[m\]┌─[\[\033[31m\] \d \[\033[36m\]\T \[\033[35m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') files, \[\033[32m\]\$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //') \n\[\033[m\] └─[ \[\033[33m\]\u\[\033[31m\]@\[\033[32m\]\h:\[\033[33;1m\]\w \[\e[1;37m\]]\[\e[1;35m\] --> \[\e[0;37m\] "



Quote:
[Image: nc9m3cO_QM6_d9w1bhni_g.png]