{"id":122135,"date":"2025-02-28T14:22:23","date_gmt":"2025-02-28T12:22:24","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/fish-shell-4-0"},"modified":"2025-02-28T14:22:23","modified_gmt":"2025-02-28T12:22:24","slug":"fish-shell-4-0","status":"publish","type":"post","link":"https:\/\/prohoster.info\/pt\/blog\/news\/fish-shell-4-0","title":{"rendered":"Fish Shell 4.0","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Fish Shell 4.0\" src=\"\/wp-content\/uploads\/2025\/02\/388d2bb69957c75501b4b9c457a7fbf4.jpg\" style=\"display:block;margin: 0 auto;\" \/>                              <noindex>      <noindex><\/p>\n<p>Shell de Comando <a rel=\"nofollow\" href=\"https:\/\/fishshell.com\">Fish Shell<\/a>, popular entre os usu\u00e1rios de terminais, foi atualizado para a vers\u00e3o 4.0, que trouxe mudan\u00e7as e melhorias significativas.<\/p>\n<p><\/noindex><\/noindex> <\/p>\n<p>A principal inova\u00e7\u00e3o \u00e9 que o Fish Shell agora est\u00e1 completamente reescrito na linguagem de programa\u00e7\u00e3o Rust. No entanto, para usu\u00e1rios normais, essa transi\u00e7\u00e3o ser\u00e1 praticamente impercept\u00edvel: comandos, configura\u00e7\u00f5es e intera\u00e7\u00f5es t\u00edpicas permanecer\u00e3o os mesmos.<\/p>\n<h4>Outras mudan\u00e7as significativas<\/h4>\n<ul>\n<li><strong>Novo sistema de mapeamento de teclas.<\/strong> O Fish Shell 4.0 apresenta um sistema atualizado de mapeamento de teclas e uma compatibilidade mais profunda com terminais. Agora, \u00e9 poss\u00edvel substituir sequ\u00eancias esc n\u00e3o intuitivas por comandos mais leg\u00edveis, como bind ctrl-right. Com o suporte ao protocolo de teclado Kitty, o Fish pode distinguir sequ\u00eancias de controle que antes pareciam id\u00eanticas, como bind ctrl-i, bind ctrl-I e bind tab.<\/li>\n<li><strong>Integra\u00e7\u00e3o com as funcionalidades do terminal.<\/strong> O Fish agora utiliza automaticamente sequ\u00eancias OSC 133 para sugest\u00f5es e sa\u00edda de comandos, o que favorece uma sincroniza\u00e7\u00e3o mais suave com diversos terminais que antes dependiam de scripts de integra\u00e7\u00e3o de shell adicionais.<\/li>\n<li><strong>Melhor tratamento de comandos longos.<\/strong> O shell agora lida de forma mais adequada com linhas de comando longas, rolando-as em vez de apresent\u00e1-las incorretamente. Quaisquer altera\u00e7\u00f5es causadas pelas mapea\u00e7\u00f5es de linha de comando s\u00e3o imediatamente vis\u00edveis, proporcionando uma experi\u00eancia de uso mais intuitiva.<\/li>\n<li><strong>Hist\u00f3rico de comandos.<\/strong> O pager de hist\u00f3rico de comandos, apresentado pela primeira vez no Fish 3.6, foi aprimorado. Agora \u00e9 poss\u00edvel utilizar a sintaxe glob para uma filtragem mais precisa dos registros do hist\u00f3rico, por exemplo, a busca por * sintaxe glob \u2014 git*HEAD retornar\u00e1 tudo onde h\u00e1 git e HEAD exatamente nessa ordem.<\/li>\n<li><strong>Novo tema padr\u00e3o.<\/strong> Na nova vers\u00e3o, o tema padr\u00e3o foi ligeiramente alterado: os comandos agora s\u00e3o exibidos na cor &laquo;normal&raquo; do terminal em vez do &laquo;azul&raquo; de dif\u00edcil leitura. Os usu\u00e1rios existentes manter\u00e3o suas configura\u00e7\u00f5es atuais, a menos que recarreguem o tema manualmente atrav\u00e9s do fish_config.<\/li>\n<li><strong>Instala\u00e7\u00f5es autoinstal\u00e1veis.<\/strong>    A nova fun\u00e7\u00e3o de instala\u00e7\u00f5es autoinstal\u00e1veis pode ser um verdadeiro avan\u00e7o para os usu\u00e1rios que frequentemente trabalham via SSH. <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/pt\/server\/dts-gdansk\/\"   title=\"servidores\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"4569\">servidores<\/a> sem privil\u00e9gios administrativos. Ap\u00f3s a compila\u00e7\u00e3o do Fish, \u00e9 poss\u00edvel executar um \u00fanico arquivo bin\u00e1rio autossuficiente que extrai tudo o que \u00e9 necess\u00e1rio \u2014 fun\u00e7\u00f5es, p\u00e1ginas de manual e at\u00e9 uma ferramenta de configura\u00e7\u00e3o na web \u2014 para o diret\u00f3rio inicial.<\/li>\n<li><strong>Exclus\u00e3o de comandos do hist\u00f3rico.<\/strong> Finalmente, chegou a t\u00e3o esperada fun\u00e7\u00e3o que permite excluir certos comandos do hist\u00f3rico. Ao definir a fun\u00e7\u00e3o personalizada fish_should_add_to_history, \u00e9 poss\u00edvel decidir exatamente quais comandos ser\u00e3o salvos.<\/li>\n<li><strong>Melhorias para scripting<\/strong>:\n<ul>\n<li>string match agora suporta a op\u00e7\u00e3o \u2014max-matches, permitindo limitar o n\u00famero de correspond\u00eancias processadas;<\/li>\n<li>os loops for n\u00e3o lembrar\u00e3o mais vari\u00e1veis locais de itera\u00e7\u00f5es anteriores;<\/li>\n<li>set recebe a op\u00e7\u00e3o \u2014no-event para suprimir eventos de altera\u00e7\u00e3o de vari\u00e1veis;<\/li>\n<li>o time inicia a medi\u00e7\u00e3o mais cedo, capturando a dura\u00e7\u00e3o de quaisquer substitui\u00e7\u00f5es de comandos antes de sua execu\u00e7\u00e3o;<\/li>\n<li>complete \u2014erase desativa completamente a autocompleta\u00e7\u00e3o de finais para os comandos especificados.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Fonte: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.linux.org.ru\/news\/opensource\/17898556\">linux.org.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 Fish Shell, \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u0432, \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 4.0, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0435\u0441\u043b\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e Fish Shell \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Rust. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u0435\u043d: \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u043f\u0440\u0435\u0436\u043d\u0438\u043c\u0438. \u0414\u0440\u0443\u0433\u0438\u0435 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u041d\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":122136,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-122135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/pt\/blog\/news\/fish-shell-4-0\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_PT\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Fish Shell 4.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/pt\/blog\/news\/fish-shell-4-0\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-02-28T12:22:24+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-02-28T12:22:24+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Fish Shell 4.0 | ProHoster","description":"Shell de Comando","canonical_url":"https:\/\/prohoster.info\/pt\/blog\/news\/fish-shell-4-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"pt_PT","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Fish Shell 4.0 | ProHoster","og:description":"\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430","og:url":"https:\/\/prohoster.info\/pt\/blog\/news\/fish-shell-4-0","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2025-02-28T12:22:24+00:00","article:modified_time":"2025-02-28T12:22:24+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"122135","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 10:59:20","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2026-01-23 10:59:20","updated":"2026-01-23 10:59:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/122135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/comments?post=122135"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/122135\/revisions"}],"predecessor-version":[{"id":164447,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/122135\/revisions\/164447"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/media\/122136"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/media?parent=122135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/categories?post=122135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/tags?post=122135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}