{"id":565,"date":"2023-09-03T09:03:13","date_gmt":"2023-09-03T07:03:13","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=565"},"modified":"2023-09-03T09:03:14","modified_gmt":"2023-09-03T07:03:14","slug":"zoxide-schneller-am-terminal-unter-linux-navigieren","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/zoxide-schneller-am-terminal-unter-linux-navigieren\/","title":{"rendered":"Zoxide &#8211; Schneller am Terminal unter Linux navigieren"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Wer viel am\u00a0Terminal\u00a0unter Linux arbeitet, navigiert auf diesem auch viel durch die Verzeichnisse. Zoxide ist eine sehr kleine Software, die sich h\u00e4ufig besuchte Verzeichnisse merkt und so schneller zug\u00e4nglich macht.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Zoxide installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software wie \u00fcblich ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch das Paket &#8222;<strong>zoxide<\/strong>&#8222;, ebenfalls unter Void Linux. Ein kleiner Tipp &#8211; installieren Sie auch das Paket &#8222;<strong>fzf<\/strong>&#8220; &#8211; dann funktioniert die Software auch interaktiv.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nach der Installation bringen Sie der Shell (<em>dem Terminal<\/em>) bei, Zoxide zu nutzen. Dazu \u00f6ffnen Sie die jeweilige versteckte Konfigurationsdatei in Ihrem Home-Verzeichnis:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Bash<\/strong>&nbsp;&#8211; .bashrc<\/li>\n\n\n\n<li><strong>Zsh<\/strong>&nbsp;&#8211; .zshrc<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Hier f\u00fcgen Sie am Ende der Datei folgende Zeile als neue Zeile ein:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bash:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>eval \"$(zoxide init bash)\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Zsh:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>eval \"$(zoxide init zsh)\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nach einem Neustart des Terminals ist Zoxide nutzbar. Alternativ laden Sie die Konfigurationsdatei neu mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.bashrc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">oder eben:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.zshrc<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Zoxide nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter normalen Umst\u00e4nden nutzen Sie auf dem Terminal unter Linux den Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">zum Navigieren, ein Beispiel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/etc\/cups\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">gelangen Sie wieder in das Home-Verzeichnis.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mit Zoxide funktioniert es genauso &#8211; dasselbe Verzeichnis:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>z \/etc\/cups\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Und zur\u00fcck:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>z-<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1024x576.jpg\" alt=\"\" class=\"wp-image-566\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Auch k\u00f6nnen Sie ein Verzeichnis zur\u00fcckspringen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ..<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Und:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>z ..<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die Software merkt sich Ihre Eingaben &#8211; also die Verzeichnisse, die Sie mit Zoxide besuchen. Oben bin ich mit Zoxide beispielsweise in das Verzeichnis &#8222;<em>\/etc\/cups\/<\/em>&#8220; gesprungen &#8211; jetzt gen\u00fcgt die Eingabe von:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>z cups<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">um in das Verzeichnis &#8222;<em>\/etc\/cups\/<\/em>&#8220; zu springen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1-1024x576.jpg\" alt=\"\" class=\"wp-image-567\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Haben Sie mehrere Verzeichnisse, die sich gleich nennen &#8211; etwa &#8222;<em>Downloads<\/em>&#8220; und &#8222;<em>Dokumente\/Downloads\/<\/em>&#8220; geben Sie statt &#8222;<strong><kbd>z<\/kbd><\/strong>&#8220; einfach &#8222;<strong><kbd>zi<\/kbd><\/strong>&#8220; an (<em>Sie m\u00fcssen jedes Verzeichnis nat\u00fcrlich einmal mit Zoxide besucht haben<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zi Downloads<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-2-1024x576.jpg\" alt=\"\" class=\"wp-image-568\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zoxide-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sie sehen jetzt alle Verzeichnisse, mit den Pfeiltasten navigieren Sie durch die Eintr\u00e4ge, Sie sehen auch den Inhalt des jeweiligen Verzeichnisses &#8211; mit Eingabe wechseln Sie in das aktuell markierte Verzeichnis.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"565\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"565\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Wer viel am\u00a0Terminal\u00a0unter Linux arbeitet, navigiert auf diesem auch viel durch die Verzeichnisse. Zoxide ist eine sehr kleine Software, die sich h\u00e4ufig besuchte Verzeichnisse merkt und so schneller zug\u00e4nglich macht. Zoxide installieren Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software wie \u00fcblich ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch das Paket &#8222;zoxide&#8222;, ebenfalls unter Void Linux. Ein [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":568,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,7,6],"class_list":["post-565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-kommandozeile","tag-shell","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=565"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/565\/revisions\/569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/568"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}