Terminal Title GrombyangOS 1.04 made in Indonesia

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
Post Reply
User avatar
Etles_T3am

Terminal Title GrombyangOS 1.04 made in Indonesia

Post 17 Feb 2015, 17:53

Asalammu'alaikum..
Halloo Ubuntu user Indonesia, Ijin kan Saya kali ini untuk berbagi bagaimana caranya merubah tampilan terminal sesuai dengan OS yang kita pakai.
Kali ini Saya menggunakan Grombyang OS sebagai media pengoprekan :D
dan Kita cukup mengoprek bagian file ( .bashrc ) yang berada di Home Hidden folder cukup tekan Ctrl+H agar nampak filenya, Langsung saja cekidot Gan !

Pertama-tama kita copy paste file .bashrc asli ke Home Folder Documents, Kemudian kita buka folder file .bashrc di hidden file tadi, Lalu hapus semua isi filenya dan copy kan ke .bashrc yg sudah kosong tadi dengan script yang sudah saya oprek di bawah ini ;


# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# colors & char ########################################################
# text normal colors
red='\e[0;31m'
blue='\e[0;34m'
cyan='\e[0;36m'
green='\e[0;32m'
yellow='\e[0;33m'
# text bright colors
bred='\e[0;91m'
bblue='\e[0;94m'
bcyan='\e[0;96m'
bgreen='\e[0;92m'
byellow='\e[0;93m'
bwhite='\e[0;97m'
# reset color
NC='\e[0m'

# alias ################################################################
# ls & grep ------------------------------------------------------------
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
# cd & goto ------------------------------------------------------------
alias cd..='cd ..'
alias ...='cd ..'
alias ....='cd ../..'
# end of alias #########################################################

# functions ############################################################
# archives -------------------------------------------------------------
# extract
function extract()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*.xz) unxz $1 ;;
*) echo "'$1' ne peut etre extrait via >extract&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=yes
fi
fi

if [ "$color_prompt" = yes ]; then
TRAD=`echo "${LANG:0:2}"`
if [ "$TRAD" == "fr" ]; then
echo -en "\e[0;31mUbuntu-Trusty\e[m + \e[0;97mGrombyangOS\e[m - prenez le contr�le de votre syst�me\n"
else
echo -en "\e[0;31mUbuntu\e[0;31m | \e[0;31mTrusty\e[0;97m | Grombyang OS 1.04 made in Indonesia |\n"
fi
PS1='${debian_chroot:+($debian_chroot)} \e[0;32m\u\e[m@\e[0;36m\h\e[m \e[01;34m\w\e[m\n $ '
# uncomment for a guantas_style prompt. sources: http://crunchbang.org/forums/viewtopic. ... 70#p277970
#PS1="\[\e[00;32m\]\A \[\e[00;35m\]\[\e[00;37m\]\n\[\e[00;35m\]●\[\e[00;33m\] ●\[\e[00;31m\] ●\[\e[01;35m\]\[\e[0m\] "
# regular Debian colored prompt:
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi


Save dan exit editor..lalu buka terminal Anda.
Voilaaaaa....Di Terminal akan muncul Tulisan
>> Ubuntu Trusty Grombyang OS 1.04 made in Indonesia <<
dengan kombinasi warna Merah & Putih di atas Username & Hostname :D

Berikut ini juga saya lampirkan screenshotnya, Selamat mencoba Bro !!
Attachments
terminal.png
terminal.png (119.18 KiB) Viewed 1482 times


User avatar
Etles_T3am

Post 04 Mar 2015, 23:04

Thanks Bro..Semoga bermanfaat.


User avatar
balz

Post 06 Jul 2015, 21:57

nice bro, keep posting grin


User avatar
shampoo

Post 01 Sep 2015, 00:00

ciamik tampilannya


Post Reply

Who is online

Users browsing this forum: No registered users and 58 guests