Xonsh: I-Cross-Platform Command Prompt kunye noLwimi lweShell

Xonsh: I-Cross-Platform Command Prompt kunye noLwimi lweShell

Xonsh: I-Cross-Platform Command Prompt kunye noLwimi lweShell

Ezi ntsuku zamva nje bendikhangela kwi-Intanethi, ndikhangela ulwazi oluluncedo olunxulumene Ukushicilela kweShell. Ukuze kuhlaziywe ikhowudi yesixhobo esincinci sesoftware endisidale kancinci kwiminyaka elishumi eyadlulayo. Isicelo esathi ngelo xesha, sabizwa Faka i-Linux Post-Bicentennial Script (LPI-SB), kwaye yenziwe kuphela nge Umyalelo osekelwe kwi-Bash. Kwaye embindini wolo phendlo ndiye ndadibana nezinto eziluncedo okanye inkqubo ebizwa ngokuba yi "Xonsh".

Kwabo bangazange beve ngesi sicelo, kufanelekile ukulindela ukuba sisixhobo esihle kakhulu isoftware yesiphelo ukubonelela nge ulwimi lweqokobhe kunye I-Cross-platform yomyalelo wokukhawuleza esebenza nayo Python.

Ukushicilela kweShell

Kwaye njengesiqhelo, phambi kokuba singene kwisihloko sanamhlanje se Izixhobo zetheminali kunye nokusetyenziswa, kwaye ngakumbi ngakumbi malunga nesicelo esiluncedo esibizwa  "Xonsh", siya kubashiya abo banomdla amakhonkco alandelayo kwabanye Izithuba zangaphambili ezinxulumene noko. Ngendlela yokuba banokuziphonononga ngokulula, ukuba kuyimfuneko, emva kokugqiba le mpapasho:

“IShell Scripting bubuchule (izakhono) bokuyila kunye nokuyila iScript (ifayile ezenzekelayo yomsebenzi) ngeShell (ngokukhethekileyo) yeNkqubo yokuSebenza, okanye uMhleli weTeksti (uMzobo okanye weSitena). Olu luhlobo lolwimi lwenkqubo olutolikwa ngokubanzi. Oko kukuthi, ngelixa uninzi lweenkqubo zidityanisiwe (ezifihliweyo), kuba ziguqulelwa ngokusisigxina kwikhowudi ethile (ekhethekileyo) ngaphambi kokuba ziphunyezwe (inkqubo yokuqokelela), umbhalo weqokobhe uhlala ukwimo yawo yoqobo (umthombo wekhowudi kwifomu yombhalo) kwaye zitolikwa njengomyalelo ngomyalelo ngexesha ngalinye zisenziwa". I-Shell, iBash kunye nezikripthi: Konke malunga nokuBhalwa kweShell

Izixhobo ezikwi-Intanethi zeShell script
Inqaku elidibeneyo:
Izixhobo ze-Intanethi kunye nezixhobo zokuFunda iShell script

Ukushicilela kweShell
Inqaku elidibeneyo:
Yakha inkqubo yakho inyathelo ngenyathelo usebenzisa iShell Scripting-Icandelo 1

Xonsh: Iqokobhe leBash, iPython nokunye

Xonsh: Iqokobhe leBash, iPython nokunye

Yintoni uXonsh?

Ngokwakho website esemthethweniisicelo "Xonsh" Ichazwe ngokufutshane ngolu hlobo lulandelayo:

"Liqokobhe elinikwe amandla yiPython. Ulwimi lweqokobhe leqonga lomnqamlezo kunye nomyalelo womyalelo oqhutywa yiPython. Ulwimi luyi-superset yePython 3.6+ kunye namanye amaqokobhe awongezelelweyo oqhele ukuvela kwiBash kunye nePython. Isebenza kuzo zonke iinkqubo eziphambili kubandakanya iLinux, OSX kunye neWindows. IXonsh yenzelwe ukusetyenziswa yonke imihla ziingcali kunye nabaqalayo".

Nangona kunjalo, kamva bongeza ukuba kunye naye:

"Nawuphi na umsebenzisi weterminal unokuxuba ngokulula imiyalelo yePython kunye neShell (efana neBash) ngendlela enamandla nelula yomgca womyalelo.".

Nto leyo, ngamagama alula, ithetha ukuba xa kusenziwa "Xonsh" sinikwa iShell okanye indawo etheminali apho sinakho sebenzisa imiyalelo elula yomibini njengaye I-Complex Bash Shell Command Prompts njenge Python. Enokuba luncedo kakhulu, zombini SysAdmin kunye neDevs, malunga nabathandi be-terminal kunye nabaqalayo, nokuba bafunde okanye baqalise ukusebenza.

Izixhobo

Okwangoku, "Xonsh" uya kwakhe Inguqulelo yamva nje yenani 0.11.0, yakhululwa imini 17 / 11 / 21. Kwaye inokufakwa ngeendlela ezininzi, umzekelo, ngeconsole, ngendlela yesiko nomphathi wephakheji eqhelekileyo esetyenziswa kwi-GNU/Linux Distro nganye, njengomphathi. umbhobho wepython, okanye ngefayile ye-AppImage okanye usebenzisa iDocker.

Phakathi kwakho iimpawu okanye imisebenzi jikelele inoku kulandelayo:

  1. Ikuvumela ukuba udibanise (iBash) imiyalelo yeShell kunye nePython okanye ngokuchaseneyo.
  2. Ivumela ukusetyenziswa kwezandiso zomntu wesithathu, i-xontributions okanye i-xontribs, engekho nto ngaphezu kwesethi yezixhobo kunye neengqungquthela zokwandisa ukusebenza kwe-xonsh.
  3. Inika i-interface eyomeleleyo ngokwemigaqo yolawulo lwembali, kuba idala iifayile zembali ngesakhiwo esityebileyo kunye nemethadatha kunye ne-API yokusebenzisana nabo.
  4. Ibandakanya ukwenza ngokwezifiso okunamandla okukhawulezayo ngokugqitywa kwethebhu, izibophelelo eziphambili, kunye nezitayile zombala ezinokwenziwa ngokwezifiso ezakhelwe ngaphakathi.

Ngelixa, kule nto inguqulelo yangoku kuqukiwe amanqaku amatsha, njenge:

  1. Ukongezwa komanyano lwezitshixo ze-CTRL-Right ukugqiba igama elilodwa le-autosuggestion.
  2. Ukuboniswa kohlobo kunye nenkcazo yezinto eziguquguqukayo zokusingqongileyo ekugqityweni.
  3. Umbhobho ophuculweyo/umgqibeli we-xpip.
  4. Ukongezwa kweqhosha le-CTRL-Backspace ukucima igama elinye nge-$XONSH_CTRL_BKSPC_DELETION.

Ngolwazi oluthe vetshe malunga "Xonsh" Ungandwendwela icandelo layo elisemthethweni apha I-PyPi y GitHub, okanye ngokuthe ngqo icandelo lakho le Uxwebhu y Tutorial, kwiwebhusayithi yayo esemthethweni.

Isikrini

Kwimeko yethu, emva kokufakwa kunye nomyalelo «sudo apt install xonsh» kunye nelandelayo «sudo pip3 install prompt_toolkit», sakwazi ukuqalisa ukuyiphumeza kwaye ukuchwetheza iBash kunye nemiyalelo yePython mnye kuphela Shell, njengoko kubonisiwe ngezantsi:

Ukuvulwa kwetheminali

Umfanekiso weskrini 1

Ukubaleka iXonsh Shell

Umfanekiso weskrini 2

Umfanekiso weskrini 3

Bash Command imizekelo

Xonsh: Umfanekiso weskrini 4

Xonsh: Umfanekiso weskrini 4

Imizekelo yomyalelo wePython

Xonsh: Umfanekiso weskrini 5

Ekugqibeleni, ukuphonononga amanqaku amaninzi kwi Ukushicilela kweShell kwiLinux ungacofa oku kulandelayo unxibelelwano. Kwaye ukuba unomdla wokubona usetyenziso endiphuhla ngalo bash ecocekileyoNdicebisa ukuba uye kum Umjelo weYouTube kwaye ubukele iividiyo malunga UFakelo lwePosi yeLinux – iSibhalo sokuSebenzisa ngokuSebenzisayo (LPI-SOA).

I-Roundup: Isithuba sesibhengezo sika-2021

Isishwankathelo

Ngamafutshane, "Xonsh" sisixhobo esikhulu isoftware yesiphelo (CLI). Ngaphezu koko, iluncedo kakhulu kwabo babathandayo yenza izikripthi okanye uziqhelanise neShell Scripting, hayi kuphela malunga Bash kodwa malunga Python, phakathi kwabanye (Zsh, Intlanzi, kunye nePlumbum). Ngoko ke, siyathemba ukuba isixhobo esinomdla qhubeka nokuphuhlisa inzuzo yabo banomdla Abasebenzisi be-GNU / Linux, kunye neTheminali.

Siyathemba ukuba olu papasho luluncedo kakhulu kumntu wonke «Comunidad de Software Libre, Código Abierto y GNU/Linux». Kwaye ungalibali ukuphawula ngayo apha ngezantsi, kwaye wabelane ngayo nabanye kwiiwebhusayithi zakho ozithandayo, amajelo, amaqela okanye uluntu lwenethiwekhi yoluntu okanye iinkqubo zemiyalezo. Ekugqibeleni, tyelela iphepha lethu lasekhaya ku «UkusukaLinux» ukuphonononga ezinye iindaba, kwaye ujoyine ijelo lethu elisemthethweni Umnxeba ovela kwiDesdeLinux.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.