A talifi na gaba zamuyi dubi ne akan OMF (Oh My Fish). Kwanakin baya nayi rubutu akan yadda ake girka Kifin Kifi. Wannan kwalliya ce mai matukar kyau, mai amfani, kuma cikakke mai amfani wanda ya haɗa da manyan fasalluka masu yawa, ayyukan bincike-ginannen ciki, nuna rubutu, da ƙari mai yawa. A cikin wannan sakon zamu ga yadda sa Kifin Sheshel yayi kyau kuma ya zama mai salo da aiki amfani da Oh My Fish.
Wannan kayan kifin ne ba ka damar shigar da fakiti waɗanda suke faɗaɗa ayyukanta ko gyara kamannin. Abu ne mai sauki ka yi amfani, mai sauri kuma wanda za a iya fadada shi. Ta amfani da OMF zamu sami sauƙin shigar da jigogi waɗanda zasu haɓaka bayyanar harsashin mu kuma shigar da ƙari don daidaita shi zuwa ga buƙatunmu da buƙatunmu.
Sanya Oh My Fish (OMF)
Shigar OMF ba wahala. Abinda kawai zamuyi shine aiwatar da umarnin mai zuwa a cikin Kifinmu:
curl -L https://get.oh-my.fish | fish
Da zarar an gama girkawa, za mu ga hakan Abubuwa sun canza, kamar yadda aka nuna a hoton da ke sama. Za mu lura cewa lokacin yanzu yana bayyana zuwa dama na taga harsashi. A wannan lokacin, lokaci yayi da za mu ba wa harsashinmu wata alama ta daban.
Tsarin OMF
Jerin kunshin abubuwa da jigogi
para lissafa duk abubuwanda aka sanya, Dole ne mu aiwatar:
omf list
Wannan umarnin zai nuna duka jigogi da aka sanya da kuma kari. Ka tuna cewa shigar da kunshin yana nufin shigar da jigogi ko ƙari.
Dukkanin fakiti na hukuma da masu dacewa da al'umma ana daukar nauyin su akan babban ma'ajiyar Oh kifi na. A cikin wannan ma'ajiyar, zamu sami damar samun ƙarin wuraren adana bayanai waɗanda suka ƙunshi ƙarin fayiloli da jigogi.
Duba samfuran da aka girka da shigar su
Yanzu bari mu duba jerin jigogi akwai kuma shigar. Don yin wannan, zamu aiwatar:
omf theme
Kamar yadda kake gani, zamu sanya jigo guda kawai, wanda shine tsoho. Hakanan zamu ga yawancin jigogi da ake dasu. Muna iya gani samfoti na duk jigogin da ke akwai a nan. Wannan shafin yana ƙunshe da cikakkun bayanai game da kowane jigo, fasali da hoton kowane ɗayansu.
Sanya sabon jigo
Zamu iya shigar da jigo a sauƙaƙe gudu, misali taken teku, Gudun:
omf install ocean
Kamar yadda zaku iya gani daga hoton da ke sama, saurin Fisho ya canza nan da nan bayan sanya sabon taken.
Canja batun
Kamar yadda na riga na fada, za a yi amfani da jigon nan da nan bayan shigar da shi. Idan kana da jigo sama da ɗaya, zaka iya canzawa zuwa jigo daban tare da umarnin mai zuwa:
omf theme fox
Yanzu zai ci gaba da amfani da taken «fox«, wanda na girka a baya.
Sanya kari
Don wannan misalin, zan yi shigar da kayan aikin yanayi. Don yin wannan dole ne mu aiwatar:
omf install weather
Kayan aikin yanayin ya dogara jq. Saboda haka wataƙila kuna buƙatar shigar da jq ma. Yawancin rarraba Gnu / Linux suna nan a cikin ɗakunan ajiya, gami da Ubuntu.
Da zarar an shigar da ƙari, zamu iya amfani da ƙari ta amfani da umarnin:
weather
Bincika jigogi ko ƙari
para bincika jigo ko plugin Zamu iya yin hakan ta hanyar rubuta wani abu tare da rubutun da ke tafe:
omf search busqueda
para iyakance binciken ga batutuwan kawaieh, dole ne muyi amfani da -t zaɓi.
omf search -t tema_a_buscar
Wannan umarnin kawai zai bincika batutuwa waɗanda ke ƙunshe da kirtani "topic_to_search". Domin iyakance bincike ga plugins, zamu iya amfani da -p zaɓi.
Sabunta kayan aiki
para sabunta ainihin asalin Oh My Fish, Dole ne mu aiwatar:
omf update omf
Idan har ya zuwa yau, za mu ga fitarwa mai zuwa:
para sabunta duk fakiti, kawai rubuta:
omf update
para selectively sabunta fakiti, kawai zamu hada sunayen kunshin kamar yadda aka nuna a kasa:
omf update weather
Nuna bayanai game da fakiti
Lokacin da kake so san bayanai game da jigo ko kayan talla, zamu iya amfani da umarnin:
omf describe ocean
Cire fakiti
Don cire kunshin kamar yanayi, dole ne mu aiwatar:
omf remove weather
Sarrafa wuraren ajiya
Ta tsohuwa, an kara ma'ajiyar hukuma ta atomatik lokacin girka Oh My Fish. Wannan wurin ajiyar ya ƙunshi duk kunshin da masu haɓaka suka kirkira. Don sarrafa wuraren ajiyar fakiti wanda mai amfani ya girka, dole ne muyi amfani da tsari mai zuwa a cikin umarnin:
omf repositories [list|add|remove]
Idan muna so jera wuraren ajiya, za mu kashe:
omf repositories list
para ƙara ma'aji:
omf repositories add https://github.com/sapoclay
Idan akwai so share ma'ajiyar ajiya:
omf repositories remove https://github.com/sapoclay
Samun taimako
Don samun damar duba taimako ga wannan rubutun keɓancewa, Dole ne mu kara kawai -h zaɓi, kamar yadda aka nuna a cikin masu zuwa:
omf -h
Rarraba Oh My Fish (OMF)
Don cire Oh My Fish daga tsarinmu, zamu aiwatar da wannan umarnin:
omf destroy
A samu detailsarin bayani game da wannan aikin, zamu iya tuntuɓar shafin GitHub.
Na ga cewa ana iya nuna alamar kifin, amma ta yaya zan iya nuna wata al'ada?