Kifi, layin umarni mai sauƙi da amfani

Alamar kifi

A kasida ta gaba zamuyi dubi ne akan Kifi. Wannan sunan gajerun kalmomi ne abokantaka mai sassaucin ra'ayi. Yana da ingantaccen tsari, mai hankali, kuma mai sauƙin amfani don tsarin-kamar Unix. Ya zo tare da mahimman fasali masu yawa kamar su motsa jiki, nuna alama, tarihin bincike (kamar su CTRL + R a cikin Bash), aikin bincike mai wayo, tallafi na launi na VGA, daidaitaccen gidan yanar gizo, kammala ayyukan shafi na hannu, da sauran masu shirin tafiya. .

Dole ne kawai mu girka wannan kwandon don fara amfani da shi cikin kankanin lokaci. Manta game da rikitarwa masu rikitarwa da sanya ƙarin ƙari ko ƙari. A cikin wannan labarin, za mu ga yadda girka kuma yi amfani da bawon Kifi akan Ubuntu, kodayake akwai shi don tsarin Gnu / Linux daban-daban. Za ku iya samun ƙarin sani a cikin aikin yanar gizo.

Sanya Kifi

Duk da kasancewa a harsashi mai sauƙin amfani da wadata cikin sifofi, ba a haɗa shi a cikin tsoffin wuraren ajiyar yawancin rarrabawar Gnu / Linux ba. Akwai shi a cikin rumbunan hukuma na 'yan kaɗan rarraba Gnu / Linux, kamar su Arch Linux, Gentoo, NixOS da Ubuntu. A cikin labarin na gaba Ina Zan gwada wannan kwalliyar akan Ubuntu 17.10. Don shigar da shi, kawai kuna buɗe tashar (Ctrl + Alt + T) kuma ku rubuta a ciki:

sudo apt-get update && sudo apt-get install fish

Amfani da Kifi

para canza zuwa Kifi daga tashar da muke amfani da ita (Ctrl + Alt T), kawai za mu rubuta waɗannan masu zuwa:

fish

Kuna iya samun Tsoffin tsarin kifi a cikin ~ / .config / kifi / config.fish. Idan babu shi, to dole ne mu kirkireshi.

Shawarwarin atomatik

Da zarar an fara wannan harsashi, lokacin da muke rubuta umarni, kai tsaye yana ba da umarni a cikin launi mai ruwan toka mai haske. Idan ka rubuta haruffan farko na umarnin Gnu / Linux kuma latsa mabuɗin Tab don cika umarnin idan akwai ƙarin damar, zai lissafa su.

Shawarwarin Kifi na atomatik

Za mu iya zaɓar umarnin da aka jera daga jerin ta amfani da makullin sama / ƙasa. Bayan mun zaɓi umarnin da muke son aiwatarwa, kawai zamu danna ENTER don aiwatar dashi.

Kamar yadda muka riga muka sani, muna yin binciken baya ta latsa (Ctrl + R) don bincika umarni a cikin tarihin bash shell. Amma wannan ba lallai bane tare da wannan kwasfa. Dole ne kawai muyi hakan rubuta farkon haruffa na umarni kuma zaɓi umarni daga jerin.

Binciken wayo

Hakanan zamu iya yin bincike mai wayo don neman takamaiman umarni, fayil ko kundin adireshi. Misali, haka ne muna rubuta maɓallin umarni, to dole ne kawai mu danna maballin ƙasa don rubuta abin da muke son bincika.

Syntax nuna alama

Zamu lura da rubutun da yake nuna lokacin buga umarni. Zamu iya ganin bambanci a cikin hotunan kariyar da ke ƙasa lokacin dana buga umarni iri ɗaya a cikin Bash da Kifi.

bash tsarin amfani da rubutu

Bash

kalma kalma ma'anarta

Fish

Kamar yadda kake gani, "sudo" an haskaka a cikin Kifi. Menene ƙari, zaka nuna umarni marasa inganci cikin ja ta tsohuwa

Tsarin yanar gizo

Wannan wani kyakkyawan yanayin ne. Za mu iya kafa launukanmu, canza alamar Kifi, da kuma duba ayyuka, masu canji, tarihi, maɓallan maɓalli, duk daga shafin yanar gizo ɗaya.

para ƙaddamar da ƙirar daidaitawar yanar gizo, kawai zamu rubuta:

daidaita yanar gizo

fish_config

Terminarshen shirin shirin

Bash da sauran bawo suna goyan bayan ƙarshen shirin, amma wannan aikace-aikacen ne kawai haifar da su ta atomatik lokacin nazarin shafukan mutum da aka girka. Don yin haka, gudu:

ƙarewar shirin kifi

fish_update_completions

Kashe gaisuwa

Ta hanyar tsoho, wannan kwasfa zai nuna mana a gaisuwa ga farawa (Maraba da kifi, harsashi mai ma'amala da abokantaka). Idan ba mu son wannan sakon gaisuwa ya bayyana, za mu iya musaki shi. Don yin wannan, dole ne mu gyara fayil ɗin sanyi:

vi ~/.config/fish/config.fish

Da zarar cikin fayil ɗin zamu ƙara layi mai zuwa:

set -g -x fish_greeting ' '

Idan maimakon katse gaisuwa mun gwammace sanya ta, za mu yi hakan ne ta hanyar ƙara saƙon layin da muka ƙara zuwa fayil ɗin.

set -g -x fish_greeting 'Bienvenid@ usuario'

Samun taimako

para bude shafin rubutun Kifi a cikin burauzar gidan yanar gizon mu tsoho daga m, kawai rubuta:

taimaka kifin yanar gizo

help

Takaddun hukuma za su buɗe a cikin burauzarmu ta asali. Menene ƙari, zamu iya amfani da shafukan mutum don nuna ɓangaren taimako don kowane umarni.

Kafa Kifi azaman asalin harsashi

Idan kuna son wannan harsashi, za ku iya saita shi ya zama tsoffin harsashi. Don yin wannan, yi amfani da umarnin chsh:

chsh -s /usr/bin/fish

Nan, / usr / bin / kifi Hanya ce zuwa hanyar Kifi. Idan baku san madaidaiciyar hanyar ba, umarni mai zuwa zai taimake ku:

which fish

Bayan an gama, fita sai a sake kunnawa zaman don amfani da sabon harsashi.

Ka tuna da hakan wasu rubutun da aka rubuta don Bash bazai dace da Kifi ba sosai.

Game da son komawa Bash, kawai gudu:

bash

Idan kana son Bash azaman tsoffin harsashi dindindin, gudu:

chsh -s /bin/bash

Kuma wannan kenan, a yanzu. Tare da abin da kuka karanta a nan, mai yiwuwa kuna da ra'ayin asali game da abin da za ku iya yi da wannan kwasfa. Idan kuna neman madadin Bash, wannan yana iya zama kyakkyawan zaɓi.


Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Wanda ke da alhakin bayanan: Miguel Ángel Gatón
  2. Manufar bayanan: Sarrafa SPAM, sarrafa sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

      jahir m

    Ta yaya zan iya tsaftace cikakken abin da ya cika? Na rubuta rm 11, sai na bashi ya shiga, kuma ina so in share fayiloli da yawa wadanda suka fara da lamba 1, kuma idan na sake sanya rm sai na samu cikawa da lambar 11, yaya zan iya tsabtace hakan?

         Nidea m

      Daga shafin yanar gizo mai daidaitawa tare da umarnin 'fish_config`
      Akwai wani sashi wanda shine tarihin umarni. Ban gwada ba amma tabbas na same su ne daga 'tarihi', ina tunanin idan ka goge shi daga wani shafin zai share shi daga daya.

      Nidea m

    Ta yaya ake tsara laƙabi?