RSS
 

Personalização do prompt do bash

05 abr

Abra (ou crie caso não exista) seu ~/.bashrc e inclua as seguintes linhas:

function colorir_bash
{
    local WHITE="\[\e[0;37m\]"
    local BRIGHTGREEN="\[\e[1;32m\]"
    local GREEN="\[\e[0;32m\]"
    local CYAN="\[\e[0;36m\]"
    local GRAY="\[\e[0;37m\]"
    local RED="\[\e[0;31m\]"
    local YELLOW="\[\e[0;33m\]"
    local BLACK="\[\e[0;30m\]"
    PS1="${WHITE}[ ${YELLOW}\u${WHITE}@${RED}\h ${CYAN}\w${WHITE} ] #${GRAY} "
}
 
colorir_bash

Salve e digite

source ~/.bashrc

Essa é a configuração que uso, monte a sua, poste nos comentários :-)

 

Tags: ,

Leave a Reply

 

 
  1. Daniel Costa

    27 de janeiro de 2012 at 22:08

    Legal, mas algumas cores não ficaram legais no fundo branco… as minhas definições estão no github, depois acho que vou colocar umas cores baseado no seu… https://github.com/danielcosta/bash-daniel

     
 
buy Endep without a prescription online order overnight Amitriptyline Amitriptyline no prior script online pharmacy maxalt order Premarin usa cod where can i order maxalt online buy cheap fedex Premarin purchase Maxalt without a prescription online buy Endep pills in toronto buy Endep toronto order buy Endep online buy generic Endep from india buy next day Endep order Endep uk uk Endep buy Endep uk order Endep online with overnight delivery buy Endep amex online without prescription next day delivery on Aricept saturday order generic Aricept online Activ8 Energy Booster online purchase Nizoral without prescription to ship overnight Nizoral free consultation fedex overnight delivery canadian prescriptions Nizoral buy Nizoral online no prescription uk Activ8 Energy Booster cheap Activ8 Energy Booster generic order Arimidex without prescription to ship overnight order Finpecia online from mexico how to order Finpecia online without prescription where to buy generic Famvir online without a prescription Famvir non perscription buy Premarin tablets without rx Energy Booster online no prescription buy Amitriptyline Online Amitriptyline bestellen generic Requip cost order Requip online next day delivery order Maxalt no rx pay Amitriptyline buy Nizoral american express Valtrex online pharmacy purchase Famvir without rx needed buy Famvir amex online without rx buy cheap Anafranil without prescription cheap Anafranil online free fedex delivery Cytotec buy Amitriptyline australia no prescription buy discount Amitriptyline line arimidex with no prescriptions Lisinopril order uk Lisinopril generic Maxalt buy on line buy Maxalt online cod buy pharmacy Orlistat waterview arimidex without a perscription or membership Aricept without a perscription Aricept canadian pharmacy Aricept shipped cash on buy genuine Aricept xenical perscription from s online buy Amitriptyline online pills buy Amitriptyline without a credit card Nizoral with repronex buy Nizoral cheap where can i purchase Amitriptyline online buy Amitriptyline without rx from us pharmacy buy Amitriptyline money buy fedex Amitriptyline without priscription order Nizoral online Nizoral buy fedex buy 200 mg Nizoral where can i buy Amitriptyline Amitriptyline no prescription Orlistat online order Premarin no doctors prescription achat Aldactone buy Aldactone no prescription low cost buy Premarin discount (uk Activ8 Energy Booster|buy 25 pills Activ8 Energy Booster|no rx Activ8 Energy Booster|uk buy Activ8 Energy Booster|buy discount Activ8 Energy Booster online|ordering Activ8 Energy Booster online|buy Activ8 Energy Booster epharmacist|order Activ8 Energy Booster usa|where to buy Activ8 Energy Booster online|order generic Activ8 Energy Booster online|cheapest place to buy Activ8 Energy Booster|discount Activ8 Energy Booster|buy cheap Activ8 Energy Booster|buy Activ8 Energy Booster c o d|Activ8 Energy Booster online prescription|want to buy Activ8 Energy Booster in malaysia|online pharmacy Activ8 Energy Booster|buy herbal Activ8 Energy Booster|buy cheap Activ8 Energy Booster line|Activ8 Energy Booster cheap|buy Activ8 Energy Booster online|Activ8 Energy Booster tablets|buy Activ8 Energy Booster toronto|where to buy Activ8 Energy Booster online|buy Activ8 Energy Booster where|best buy Activ8 Energy Booster|online pharmacy Activ8 Energy Booster|buy mail order Activ8 Energy Bo buy cheap Maxalt line Maxalt shipped cash on buy Proscar amex online without prescription order prescription free Proscar where to purchase generic Prednisone online without a prescription where to purchase generic Requip online without a prescription buy Requip without rx from us pharmacy online Premarin maxalt without prescription mexico cheap Proscar no rx buy brand Prednisone ordering Activ8 online without a precription Amitriptyline online purchase purchase Activ8 without a prescription overnight shipping Activ8 on line buy Accutane 40 mg in united states online buy Accutane 40 mg with no prescription 40 mg Accutane overnight US delivery 40 mg Accutane no perscription worldwide