Sezvo nhasi chiri Chishanu, chechipiri chemwedzi waMay, uye zvechokwadi vateveri vazhinji veLinux neLinuxverse kazhinji kazhinji ratidza yako yakajairwa Desktops uye Terminals (Consoles) ine inoyevedza graphic dhizaini (Wallpaper) uye inobatsira uye yakakosha zvinhu kana ruzivo rwakavakirwa pane yako yekushandisa system; Nhasi tichatora mukana wekukuratidza inonakidza tsika yekunyepedzera.
Uye zvakanyanya, zvinosanganisira, sekutaura kunoita zita rechinyorwa chedu nhasi, mukupenda kukurumidza kweLinux Terminal yedu nemavara. Uye kuita izvi, sekutaura kunoita mufananidzo wedu, tichava uchishandisa iyo terminal command inonzi "lolcat", iyo yatinowanzo shandisa kunyanya kupendesa "Kutora" yemahara uye yakavhurika sisitimu yekushandisa patinoiratidza pamazuva iwayo makuru e #DesktopFridays. Saka, pasi apa tichakuratidza «Maitiro ekuratidza Prompt (PS1) yeLinux Terminal ine mavara » uchishandisa murairo wakataurwa.
Asi, usati watanga iyi positi nezve ichi chinokatyamadza uye chinonakidza dhizaini yako «Kurumidza (PS1) kubva kuLinux Terminal», tinokurudzira kuti uongorore a yapfuura inoenderana posvo neichi chiyero, pakupera kwekuchiverenga:
Nakisa iyo Prompt (PS1) yeLinux Terminal ine lolcat
Matanho ekugadzirisa iyo Prompt (PS1) yeLinux Terminal ine mavara
Kutanga uye kubudirira kuita iyi nzira, uye kudzivirira matambudziko emunguva yemberi, seyakafanira kudzidzira komputa yakanaka, chinhu chekutanga chatinokurudzira ndechekuti, iyo "chengetedza faira redu razvino .bashrc". Kureva, iyo yekutanga faira yekumisikidza yeazvino mushandisi weBash nharaunda muGNU/Linux sisitimu yekushandisa yatiri kushandisa. Kuti uite izvi, unogona kushandisa ese ari maviri Terminal uye yako yaunofarira File Explorer kuti uite kopi yayo.
Kana kuchengetedza kwakakodzera kwaitwa, tinogona kuenderera mberi nematanho anotevera tisingatyi kukuvadza chimwe chinhu uye kusakwanisa kuchigadzirisa kana kudzokera kunzvimbo yekutanga.
- Rongedza faira redu razvino ".bashrc": Ngatiyeukei kuti tinogona kushandisa CLI Mharidzo seNano kana Vi, kana GUI Mharidzo seGedit kana Mousepad. Uye iyo faira yakataurwa iri munzira /home/$USER/.bashrc.
- Dzima iyo ikozvino kukurumidza (PS1): Kamwe kana yedu yekutanga faira yekumisikidza yeyako Bash nharaunda yakavhurika, isu tinofanirwa kutaura pane yazvino mutsara wekukurumidza (PS1) yatinayo mukushanda. Kuti uite izvi, zvichave zvakakwana chete kuisa chiratidzo chenhamba pakutanga kwayo: "#".
- Isa mitsva yekukurumidza kumisikidza mitsetse (PS1): Kuti tiite izvi, isu tichafanirwa kukopa, kuisa uye mitsara inotevera inopihwa mufaira redu rakavhurika, uye pakupera kweakaremara mutsara wekupedzisira wekukurumidza kukurumidza (PS1):
Texto=$((echo "Bienvenido al prompt del sistema $USER@$HOSTNAME a las `date +"%D"-"%T"`") | lolcat -f -F 0.7 -S $LOLCAT_SEED 2>/dev/null)
PS1="\[\e[33;1m\]┌─────(\[\e[34;1m\] `(echo $Texto)` { \[\e[31;1m\]\w\[\e[33;1m\] }\n└──┤ \[\e[32m\]\$ "
Kana matanho aya aitwa, iwe unongoda kuvhura Linux Terminal (Console) uye kuyedza kuti shanduko dzave dzinogutsa, kana kuti ivo vanoburitsa meseji yekukanganisa inofanirwa kugadziriswa.
Screen inopfura
Uye kuti unzwisise zviri nani zvese zvakatsanangurwa kare, tinokusiira iwe akajairwa ane hukama skrini:
Resumen
Muchidimbu, isu tinovimba kuti iyi yazvino dhizaini yakadzidziswa inobvumidza vazhinji, kunyanya pamazuva eDesktop, simba «ratidza yako Linux Terminal Prompt (PS1) ine mavara» uchishandisa murairo unozivikanwa we "lolcat". Uye kubva, zvirokwazvo Semushandisi akanaka weLinux unenge watove nePrompt yako (PS1) yakagadzirirwa kuburikidza nemanomano makuru (magadzirirwo uye optimizations) anoshandiswa kune yako .bashrc faira, tinokukoka iwe kuti utiudze nezvavo kune ruzivo uye kubatsirwa kweCommunity, iyo inoda kushandisa izvi zvinogadziriswa.
Chekupedzisira, rangarira kugovera iyi inobatsira uye inonakidza positi nevamwe, uye shanyira kwekutanga kwedu «website» muchiSpanish kana mimwe mitauro (kuwedzera mavara maviri kusvika kumagumo eURL, semuenzaniso: ar, de, en, fr, ja, pt uye ru, pakati pevamwe vakawanda). Uyezve, tinokukoka iwe kuti ubatane nesu Official Telegraph chiteshi kuverenga uye kugovera dzimwe nhau, madhairekitori uye tutorials kubva kune yedu webhusaiti. Uye zvakare, inotevera Imwe nzira yeTeregiramu kuti udzidze zvakawanda nezve Linuxverse mune zvakajairika.