Files

91 lines
53 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html><html lang=cs dir=ltr class=scroll-smooth data-default-appearance=dark data-auto-appearance=true><head><meta charset=utf-8><meta http-equiv=content-language content="cs"><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=X-UA-Compatible content="ie=edge"><meta name=theme-color><title>Command-Line Shell &#183; Arch Linux CZ</title><meta name=title content="Command-Line Shell &#183; Arch Linux CZ"><meta name=description content="Česká komunita Arch Linuxu"><meta name=keywords content="shell,"><link rel=canonical href=https://arch-linux.cz/command-line-shell/><meta name=author content="Arch Linux CZ"><link href=https://gts.arch-linux.cz/@arch rel=me><link href=https://git.arch-linux.cz/ArchlinuxCz rel=me><link href=https://matrix.to/#/#archlinuxcz:matrix.org rel=me><link href=/index.xml rel=me><meta property="og:url" content="https://arch-linux.cz/command-line-shell/"><meta property="og:site_name" content="Arch Linux CZ"><meta property="og:title" content="Command-Line Shell"><meta property="og:description" content="V dalším díle seriálu Tondy Fischera se podíváme na prostředí příkazového řádku. Představíme si postupně 3 nejrozšířenější shelly v GNU/Linux (sh nepočítám). Shells si postupně nakonfigurujeme a přizpůsobíme opět pro nejlepší efektivitu svojí práce. Terminálové aplikace se tak dostanou na zcela jinou úroveň, se kterou se často nemohou měřit ani normální aplikace s tlačítky. Batch processing je nenahraditelnou součástí pokročilého používání počítačů, historie příkazů a fuzzy processing je něco, co se jiným operačním systémům ani nesnilo."><meta property="og:locale" content="cs"><meta property="og:type" content="article"><meta property="article:section" content="posts"><meta property="article:published_time" content="2022-04-01T00:00:00+00:00"><meta property="article:modified_time" content="2022-04-01T00:00:00+00:00"><meta property="article:tag" content="Shell"><meta name=twitter:card content="summary"><meta name=twitter:title content="Command-Line Shell"><meta name=twitter:description content="V dalším díle seriálu Tondy Fischera se podíváme na prostředí příkazového řádku. Představíme si postupně 3 nejrozšířenější shelly v GNU/Linux (sh nepočítám). Shells si postupně nakonfigurujeme a přizpůsobíme opět pro nejlepší efektivitu svojí práce. Terminálové aplikace se tak dostanou na zcela jinou úroveň, se kterou se často nemohou měřit ani normální aplikace s tlačítky. Batch processing je nenahraditelnou součástí pokročilého používání počítačů, historie příkazů a fuzzy processing je něco, co se jiným operačním systémům ani nesnilo."><link type=text/css rel=stylesheet href=/css/main.bundle.min.07a8088c33086a4f22f8c0e9b9dd8b3d24774753ce35a341034d6f7c1e249b72e184af812c1341e6a62df443da9e4bb28feddf7f5c6f07b24a20a900ef559483.css integrity="sha512-B6gIjDMIak8i+MDpud2LPSR3R1PONaNBA01vfB4km3LhhK+BLBNB5qYt9EPankuyj+3ff1xvB7JKIKkA71WUgw=="><script type=text/javascript src=/js/appearance.min.6f41174b3a05b680820fe08cadbfa5fb7a7ca347b76a0955cdc68b9d8aca1ce24f0547e138cea33bcc7904d551a90afcb1cc7f2d9fe8557075d501419046c08c.js integrity="sha512-b0EXSzoFtoCCD+CMrb+l+3p8o0e3aglVzcaLnYrKHOJPBUfhOM6jO8x5BNVRqQr8scx/LZ/oVXB11QFBkEbAjA=="></script><script src=/lib/zoom/zoom.min.umd.a527109b68c082a70f3697716dd72a9d5aa8b545cf800cecbbc7399f2ca6f6e0ce3e431f2062b48bbfa47c9ea42822714060bef309be073f49b9c0e30d318d7b.js integrity="sha512-pScQm2jAgqcPNpdxbdcqnVqotUXPgAzsu8c5nyym9uDOPkMfIGK0i7+kfJ6kKCJxQGC+8wm+Bz9JucDjDTGNew=="></script><script defer type=text/javascript id=script-bundle src=/js/main.bundle.min.4c6b36324987fc05dd8cd58437946294b6f2e315675cef16098738373ac2a0fe600416b00e13a1a8687c872f82868f7a0ece1e4ae0b9ea6ead63721f5e8b6748.js integrity="sha512-TGs2MkmH/AXdjNWEN5RilLby4xVnXO8WCYc4NzrCoP5gBBawDhOhqGh8hy+Cho96Ds4eSuC56m6tY3IfXotnSA==" data-copy=Kopírovat data-copied=Zkopírováno></script><link rel=apple-touch-icon sizes=180x180 href=/apple-touch-icon.png><link rel=icon type=image/png sizes=32x32 href=/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=/favicon-16x16.png><link rel=manifest href=/site.webmanifest><script type=application/ld+json>[{"@context":"https://schema.org","@type":"Article","articleSection":"Archiv článků","name":"Command-Line Shell","headline":"Command-Line Shell","inLanguage":"cs","url":"https://arch-linux.cz/command-line-shell/","author":{"@type":"Person","name":"Arch Linux CZ"},"copyrightYear":"2022","dateCreated":"2022-04-01T00:00:00\u002b00:00","datePublished":"2022-04-01T00:00:00\u002b00:00","dateModified":"2022-04-01T00:00:00\u002b00:00","keywords":["shell"],"mainEntityOfPage":"true","wordCount":"641"}]</script></head><body class="flex flex-col h-screen m-auto leading-7 max-w-7xl px-6 sm:px-14 md:px-24 lg:px-32 text-lg bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral bf-scrollbar"><div id=the-top class="absolute flex self-center"><a class="px-3 py-1 text-sm -translate-y-8 rounded-b-lg bg-primary-200 focus:translate-y-0 dark:bg-neutral-600" href=#main-content><span class="font-bold text-primary-600 pe-2 dark:text-primary-400">&darr;</span>
Přeskočit na hlavní obsah</a></div><div class="main-menu flex items-center w-full gap-2 p-1 pl-0"><div><a href=/ class=flex><span class=sr-only>Arch Linux CZ</span>
<img src=/img/logo.png width=32 height=32 class="logo max-h-20 max-w-20 object-scale-down object-left nozoom" alt></a></div><a href=/ class="text-base font-medium truncate min-w-0 shrink">Arch Linux CZ</a><div class="flex items-center ms-auto"><div class="hidden md:flex"><nav class="flex items-center gap-x-5 h-12"><a href=/ class="flex items-center bf-icon-color-hover" aria-label=Domů title="Arch Linux CZ"><span class="text-base font-medium break-normal">Domů
</span></a><a href=/categories/n%C3%A1vody/ class="flex items-center bf-icon-color-hover" aria-label=Návody title><span class="text-base font-medium break-normal">Návody
</span></a><a href=/categories/zrp%C3%A1vy/ class="flex items-center bf-icon-color-hover" aria-label=Zprávy title><span class="text-base font-medium break-normal">Zprávy
</span></a><a href=/o-arch-linuxu/ class="flex items-center bf-icon-color-hover" aria-label="O Arch Linuxu" title="Co je Arch Linux"><span class="text-base font-medium break-normal">O Arch Linuxu
</span></a><a href=https://wiki.arch-linux.cz/shelves/arch-linux-cz target=_blank class="flex items-center bf-icon-color-hover" aria-label=Wiki title><span class="text-base font-medium break-normal">Wiki
</span></a><a href=https://forum.arch-linux.cz/ target=_blank class="flex items-center bf-icon-color-hover" aria-label=Fórum title><span class="text-base font-medium break-normal">Fórum
</span></a><a href=/komunita/ class="flex items-center bf-icon-color-hover" aria-label=Komunita title=Komunita><span class="text-base font-medium break-normal">Komunita
</span></a><a href=/podporte-nas/ class="flex items-center bf-icon-color-hover" aria-label="Podpořte nás" title="Podpořte nás"><span class="text-base font-medium break-normal">Podpořte nás
</span></a><a href=/posts/ class="flex items-center bf-icon-color-hover" aria-label=Archiv title="Archiv článků"><span class="text-base font-medium break-normal">Archiv
</span></a><a href=/tags/ class="flex items-center bf-icon-color-hover" aria-label=Tagy title=Tags><span class="text-base font-medium break-normal">Tagy
</span></a><button id=search-button aria-label=Search class="text-base bf-icon-color-hover" title="Vyhledat (/)">
<span class="relative block icon"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" class="svg-inline--fa fa-search fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M505 442.7 405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9.0 208 0S0 93.1.0 208s93.1 208 208 208c48.3.0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9.0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7.0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7.0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></svg></span></button><div class="flex items-center"><button id=appearance-switcher aria-label="Dark mode switcher" type=button class="text-base bf-icon-color-hover"><div class="flex items-center justify-center dark:hidden"><span class="relative block icon"><svg viewBox="0 0 512 512"><path fill="currentColor" d="M32 256C32 132.2 132.3 32 255.8 32c11.36.0 29.7 1.668 40.9 3.746 9.616 1.777 11.75 14.63 3.279 19.44C245 86.5 211.2 144.6 211.2 207.8c0 109.7 99.71 193 208.3 172.3 9.561-1.805 16.28 9.324 10.11 16.95C387.9 448.6 324.8 480 255.8 480 132.1 480 32 379.6 32 256z"/></svg></span></div><div class="items-center justify-center hidden dark:flex"><span class="relative block icon"><svg viewBox="0 0 512 512"><path fill="currentColor" d="M256 159.1c-53.02.0-95.1 42.98-95.1 95.1s41.2 96.9 95.1 96.9 95.1-42.98 95.1-95.1S309 159.1 256 159.1zM509.3 347l-63.2-91.9 63.15-91.01c6.332-9.125 1.104-21.74-9.826-23.72l-109-19.7-19.7-109c-1.975-10.93-14.59-16.16-23.72-9.824L256 65.89 164.1 2.736c-9.125-6.332-21.74-1.107-23.72 9.824L121.6 121.6 12.56 141.3C1.633 143.2-3.596 155.9 2.736 164.1L65.89 256 2.74 347.01c-6.332 9.125-1.105 21.74 9.824 23.72l109 19.7 19.7 109c1.975 10.93 14.59 16.16 23.72 9.824L256 446.1l91.01 63.15c9.127 6.334 21.75 1.107 23.72-9.822l19.7-109 109-19.7C510.4 368.8 515.6 356.1 509.3 347zM256 383.1c-70.69.0-127.1-57.31-127.1-127.1.0-70.69 57.31-127.1 127.1-127.1S383.1 186.2 383.1 256c0 70.7-56.4 127.1-127.1 127.1z"/></svg></span></div></button></div></nav></div><div class="flex md:hidden"><div class="flex items-center h-14 gap-4"><button id=search-button-mobile aria-label=Search class="flex items-center justify-center bf-icon-color-hover" title="Vyhledat (/)">
<span class="relative block icon"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" class="svg-inline--fa fa-search fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M505 442.7 405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9.0 208 0S0 93.1.0 208s93.1 208 208 208c48.3.0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9.0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7.0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7.0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></svg>
</span></button>
<button id=appearance-switcher-mobile type=button aria-label="Dark mode switcher" class="flex items-center justify-center text-neutral-900 hover:text-primary-600 dark:text-neutral-200 dark:hover:text-primary-400"><div class=dark:hidden><span class="relative block icon"><svg viewBox="0 0 512 512"><path fill="currentColor" d="M32 256C32 132.2 132.3 32 255.8 32c11.36.0 29.7 1.668 40.9 3.746 9.616 1.777 11.75 14.63 3.279 19.44C245 86.5 211.2 144.6 211.2 207.8c0 109.7 99.71 193 208.3 172.3 9.561-1.805 16.28 9.324 10.11 16.95C387.9 448.6 324.8 480 255.8 480 132.1 480 32 379.6 32 256z"/></svg></span></div><div class="hidden dark:block"><span class="relative block icon"><svg viewBox="0 0 512 512"><path fill="currentColor" d="M256 159.1c-53.02.0-95.1 42.98-95.1 95.1s41.2 96.9 95.1 96.9 95.1-42.98 95.1-95.1S309 159.1 256 159.1zM509.3 347l-63.2-91.9 63.15-91.01c6.332-9.125 1.104-21.74-9.826-23.72l-109-19.7-19.7-109c-1.975-10.93-14.59-16.16-23.72-9.824L256 65.89 164.1 2.736c-9.125-6.332-21.74-1.107-23.72 9.824L121.6 121.6 12.56 141.3C1.633 143.2-3.596 155.9 2.736 164.1L65.89 256 2.74 347.01c-6.332 9.125-1.105 21.74 9.824 23.72l109 19.7 19.7 109c1.975 10.93 14.59 16.16 23.72 9.824L256 446.1l91.01 63.15c9.127 6.334 21.75 1.107 23.72-9.822l19.7-109 109-19.7C510.4 368.8 515.6 356.1 509.3 347zM256 383.1c-70.69.0-127.1-57.31-127.1-127.1.0-70.69 57.31-127.1 127.1-127.1S383.1 186.2 383.1 256c0 70.7-56.4 127.1-127.1 127.1z"/></svg></span></div></button>
<input type=checkbox id=mobile-menu-toggle autocomplete=off class="hidden peer">
<label for=mobile-menu-toggle class="flex items-center justify-center cursor-pointer bf-icon-color-hover"><span class="relative block icon"><svg viewBox="0 0 448 512"><path fill="currentColor" d="M0 96C0 78.33 14.33 64 32 64H416c17.7.0 32 14.33 32 32 0 17.7-14.3 32-32 32H32C14.33 128 0 113.7.0 96zM0 256c0-17.7 14.33-32 32-32H416c17.7.0 32 14.3 32 32s-14.3 32-32 32H32c-17.67.0-32-14.3-32-32zM416 448H32c-17.67.0-32-14.3-32-32s14.33-32 32-32H416c17.7.0 32 14.3 32 32s-14.3 32-32 32z"/></svg></span></label><div role=dialog aria-modal=true style=scrollbar-gutter:stable class="fixed inset-0 z-50 invisible overflow-y-auto px-6 py-20 opacity-0 transition-[opacity,visibility] duration-300 peer-checked:visible peer-checked:opacity-100 bg-neutral-50/97 dark:bg-neutral-900/99
bf-scrollbar"><label for=mobile-menu-toggle class="fixed end-8 top-5 flex items-center justify-center z-50 h-12 w-12 cursor-pointer select-none rounded-full bf-icon-color-hover border bf-border-color bf-border-color-hover bg-neutral-50 dark:bg-neutral-900"><span class="relative block icon"><svg viewBox="0 0 320 512"><path fill="currentColor" d="M310.6 361.4c12.5 12.5 12.5 32.75.0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3 54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75.0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75.0-45.25s32.75-12.5 45.25.0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25.0s12.5 32.75.0 45.25l-105.4 105.4L310.6 361.4z"/></svg></span></label><nav class="mx-auto max-w-md space-y-6"><div class=px-2><a href=/ aria-label=Domů class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title="Arch Linux CZ" class="text-2xl font-bold tracking-tight">Domů</span></a></div><div class=px-2><a href=/categories/n%C3%A1vody/ aria-label=Návody class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title class="text-2xl font-bold tracking-tight">Návody</span></a></div><div class=px-2><a href=/categories/zrp%C3%A1vy/ aria-label=Zprávy class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title class="text-2xl font-bold tracking-tight">Zprávy</span></a></div><div class=px-2><a href=/o-arch-linuxu/ aria-label="O Arch Linuxu" class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title="Co je Arch Linux" class="text-2xl font-bold tracking-tight">O Arch Linuxu</span></a></div><div class=px-2><a href=https://wiki.arch-linux.cz/shelves/arch-linux-cz aria-label=Wiki target=_blank class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title class="text-2xl font-bold tracking-tight">Wiki</span></a></div><div class=px-2><a href=https://forum.arch-linux.cz/ aria-label=Fórum target=_blank class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title class="text-2xl font-bold tracking-tight">Fórum</span></a></div><div class=px-2><a href=/komunita/ aria-label=Komunita class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title=Komunita class="text-2xl font-bold tracking-tight">Komunita</span></a></div><div class=px-2><a href=/podporte-nas/ aria-label="Podpořte nás" class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title="Podpořte nás" class="text-2xl font-bold tracking-tight">Podpořte nás</span></a></div><div class=px-2><a href=/posts/ aria-label=Archiv class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title="Archiv článků" class="text-2xl font-bold tracking-tight">Archiv</span></a></div><div class=px-2><a href=/tags/ aria-label=Tagy class="flex items-center gap-4 group bf-icon-color-hover text-neutral-700 dark:text-neutral-200"><span title=Tags class="text-2xl font-bold tracking-tight">Tagy</span></a></div></nav></div></div></div></div></div><div class="relative flex flex-col grow"><main id=main-content class=grow><article><header id=single_header class="mt-5 max-w-prose"><h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">Command-Line Shell</h1><div class="mt-1 mb-6 text-base text-neutral-500 dark:text-neutral-400 print:hidden"><div class="flex flex-row flex-wrap items-center"><time datetime=2022-04-01T00:00:00+00:00>1. dubna 2022</time><span class="px-2 text-primary-500">&#183;</span><span>641 slov</span><span class="px-2 text-primary-500">&#183;</span><span title="Doba čtení">4 min</span></div><div class="flex flex-row flex-wrap items-center"><a class="relative mt-[0.5rem] me-2" href=/categories/n%C3%A1vody/><span class="flex cursor-pointer"><span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">Návody
</span></span></a><a class="relative mt-[0.5rem] me-2" href=/tags/shell/><span class="flex cursor-pointer"><span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">Shell</span></span></a></div></div><div class="flex author"><div class=place-self-center><div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">Autor</div><div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">Arch Linux CZ</div><div class="text-sm text-neutral-700 dark:text-neutral-400">Návody, novinky a podpora pro uživatele Arch Linuxu v češtině.</div><div class="text-2xl sm:text-lg"><div class="flex flex-wrap text-neutral-400 dark:text-neutral-500 space-x-2"><a class="hover:text-primary-700 dark:hover:text-primary-400" href=https://gts.arch-linux.cz/@arch target=_blank aria-label=Fediverse title=Fediverse rel="me noopener noreferrer"><span class="inline-block align-text-bottom"><span class="relative block icon"><svg width="196.52mm" height="196.52mm" viewBox="0 0 196.52 196.52"><g fill="currentColor" transform="translate(6.6789703,-32.495842) matrix(0.26458333,0,0,0.26458333,-6.6789703,32.495842)"><path d="m181.13086 275.13672a68.892408 68.892408.0 01-29.46484 29.32812l161.75781 162.38868 38.99805-19.76368zm213.36328 214.1875-38.99805 19.76367 81.96289 82.2832a68.892409 68.892409.0 0129.47071-29.33203z"/><path d="m581.64648 339.39062-91.57617 46.41016 6.75196 43.18945 103.61523-52.51367A68.892409 68.892409.0 01581.64648 339.39062zM436.9082 412.74219 220.38281 522.47656a68.892408 68.892408.0 0118.79492 37.08985L443.66016 455.93359z"/><path d="M367.27539 142.4375 262.79492 346.4082l30.84766 30.9668L404.26562 161.41797A68.892408 68.892408.0 01367.27539 142.4375zm-131.6543 257.02148-52.92187 103.31446a68.892409 68.892409.0 0136.98633 18.97851l46.78125-91.32812z"/><path d="m150.76758 304.91797a68.892408 68.892408.0 01-34.41602 7.19531 68.892408 68.892408.0 01-6.65039-.69531l30.90235 197.66211a68.892409 68.892409.0 0134.41601-7.19531 68.892409 68.892409.0 016.64649.69531z"/><path d="m239.3418 560.54492a68.892408 68.892408.0 01.7207 13.87696 68.892408 68.892408.0 01-7.26758 27.17968l197.62891 31.71289a68.892409 68.892409.0 01-.72266-13.8789 68.892409 68.892409.0 017.26953-27.17774z"/><path d="m601.13281 377.19922-91.21875 178.08203a68.892408 68.892408.0 0136.99414 18.98242L638.125 396.18359a68.892409 68.892409.0 01-36.99219-18.98437z"/><path d="m476.72266 125.33008a68.892408 68.892408.0 01-29.47071 29.33203l141.26563 141.81055a68.892409 68.892409.0 0129.46875-29.33204z"/><path d="m347.78711 104.63086-178.57617 90.49805a68.892409 68.892409.0 0118.79297 37.08593l178.57421-90.50195a68.892408 68.892408.0 01-18.79101-37.08203z"/><path d="m446.92578 154.82617a68.892408 68.892408.0 01-34.98242 7.48242 68.892408 68.892408.0 01-6.0293-.63281l15.81836 101.29102 43.16211 6.92578zm-16 167.02735 37.40039 239.48242a68.892409 68.892409.0 0133.91406-6.94336 68.892409 68.892409.0 017.20704.79101L474.08984 328.77734z"/><path d="m188.13086 232.97461a68.892408 68.892408.0 01.75781 14.0957 68.892408 68.892408.0 01-7.16015 26.98242l101.36914 16.28125 19.92382-38.9082zM361.86719 260.875l-19.92578 38.91211 239.51367 38.4668a68.892409 68.892409.0 01-.69531-13.71875 68.892409 68.892409.0 017.34961-27.32422z"/></g><g fill="currentColor" transform="translate(6.6789703,-32.495842) rotate(3.1178174)"><circle cx="106.26596" cy="51.535553" r="16.570711"/><circle cx="171.42836" cy="110.19328" r="16.570711"/><circle cx="135.76379" cy="190.27704" r="16.570711"/><circle cx="48.559471" cy="181.1138" r="16.570711"/><circle cx="30.328812" cy="95.366837" r="16.570711"/></g></svg></span></span></a>
<a class="hover:text-primary-700 dark:hover:text-primary-400" href=https://git.arch-linux.cz/ArchlinuxCz target=_blank aria-label=Gitea title=Gitea rel="me noopener noreferrer"><span class="inline-block align-text-bottom"><span class="relative block icon"><svg viewBox="5.67 143.05 628.65 387.55"><path fill="currentColor" d="M115.912 143.075c-6.462.0-13.762.525-22.012 2.325-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.267.3-26.433.597-39.5.697l.1 117.002s57.4 24.202 83.1 40.102c3.7 2.3 10.2 6.798 12.9 14.398 2.1 6.1 2 13.101-1 19.301l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12l-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8a5290.322 5290.322.0 0027 12.954c0-36.449-.1-109.053-.1-109.053-29 .4-89.2-2.201-89.2-2.201s-141.4-7.1-156.8-8.5c-4.9-.3-10.525-.825-16.988-.825zm12.188 48.026s7.1 59.399 15.7 94.199c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1z"/><path fill="currentColor" d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"/></svg></span></span></a>
<a class="hover:text-primary-700 dark:hover:text-primary-400" href=https://matrix.to/#/#archlinuxcz:matrix.org target=_blank aria-label=Matrix title=Matrix rel="me noopener noreferrer"><span class="inline-block align-text-bottom"><span class="relative block icon"><svg role="img" viewBox="0 0 24 24"><title>Matrix</title><path fill="currentColor" d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54.0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453.0.872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755.0 00-.18-.66 1.106 1.106.0 00-.438-.448c-.194-.11-.457-.166-.785-.166-.332.0-.6.064-.803.189a1.38 1.38.0 00-.48.499 1.946 1.946.0 00-.231.696 5.56 5.56.0 00-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074.0 00-.143-.688 1.052 1.052.0 00-.415-.503c-.194-.125-.476-.19-.854-.19-.111.0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z"/></svg></span></span></a>
<a class="hover:text-primary-700 dark:hover:text-primary-400" href=/index.xml target=_blank aria-label=Rss title=Rss rel="me noopener noreferrer"><span class="inline-block align-text-bottom"><span class="relative block icon"><svg viewBox="0 0 448 512"><path fill="currentColor" d="M0 64C0 46.3 14.3 32 32 32c229.8.0 416 186.2 416 416 0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96 14.3 96 0 81.7.0 64zM128 416c0 35.3-28.7 64-64 64S0 451.3.0 416s28.7-64 64-64 64 28.7 64 64zM32 160c159.1.0 288 128.9 288 288 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224-17.7.0-32-14.3-32-32s14.3-32 32-32z"/></svg></span></span></a></div></div></div></div><div class=mb-5></div></header><section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row"><div class="order-first lg:ms-auto px-0 lg:order-last lg:ps-8 lg:max-w-2xs"><div class="toc ps-5 print:hidden lg:sticky lg:top-10"><details open id=TOCView class="toc-right mt-0 overflow-y-auto overscroll-contain bf-scrollbar rounded-lg -ms-5 ps-5 pe-2 hidden lg:block"><summary class="block py-1 text-lg font-semibold cursor-pointer bg-neutral-100 text-neutral-800 -ms-5 ps-5 dark:bg-neutral-700 dark:text-neutral-100 lg:hidden">Obsah</summary><div class="min-w-[220px] py-2 border-dotted border-s-1 -ms-5 ps-5 dark:border-neutral-600"><nav id=TableOfContents><ul><li></li><li><a href=#zsh-instalace>Zsh Instalace</a></li><li></li><li><a href=#zsh-prompt-themes>Zsh Prompt Themes</a></li><li></li><li><a href=#instalace-zsh-plugins>Instalace Zsh plugins</a></li><li></li><li><a href=#instalace-colorscriptů>Instalace Colorscriptů</a></li></ul><ul><li></li><li><a href=#fish-instalace>Fish Instalace</a></li><li><a href=#starship-cross-shell-prompt-instalace>STARSHIP Cross-Shell Prompt Instalace</a><ul><li><a href=#personal-starship-settings>Personal Starship Settings</a></li></ul></li><li><a href=#fish-jako-uživatelský-interaktivní-shell>Fish jako uživatelský interaktivní shell</a></li><li></li><li><a href=#fish-raven2cz-dotfiles>Fish Raven2cz Dotfiles</a></li></ul></nav></div></details><details class="toc-inside mt-0 overflow-hidden rounded-lg -ms-5 ps-5 lg:hidden"><summary class="py-1 text-lg font-semibold cursor-pointer bg-neutral-100 text-neutral-800 -ms-5 ps-5 dark:bg-neutral-700 dark:text-neutral-100 lg:hidden">Obsah</summary><div class="py-2 border-dotted border-neutral-300 border-s-1 -ms-5 ps-5 dark:border-neutral-600"><nav id=TableOfContents><ul><li></li><li><a href=#zsh-instalace>Zsh Instalace</a></li><li></li><li><a href=#zsh-prompt-themes>Zsh Prompt Themes</a></li><li></li><li><a href=#instalace-zsh-plugins>Instalace Zsh plugins</a></li><li></li><li><a href=#instalace-colorscriptů>Instalace Colorscriptů</a></li></ul><ul><li></li><li><a href=#fish-instalace>Fish Instalace</a></li><li><a href=#starship-cross-shell-prompt-instalace>STARSHIP Cross-Shell Prompt Instalace</a><ul><li><a href=#personal-starship-settings>Personal Starship Settings</a></li></ul></li><li><a href=#fish-jako-uživatelský-interaktivní-shell>Fish jako uživatelský interaktivní shell</a></li><li></li><li><a href=#fish-raven2cz-dotfiles>Fish Raven2cz Dotfiles</a></li></ul></nav></div></details></div></div><div class="min-w-0 min-h-0 max-w-fit"><div class="article-content max-w-prose mb-20"><p>V dalším díle seriálu <a href=https://github.com/raven2cz target=_blank rel=noreferrer>Tondy Fischera</a> se podíváme na prostředí příkazového řádku. Představíme si postupně 3 nejrozšířenější shelly v GNU/Linux (sh nepočítám). Shells si postupně nakonfigurujeme a přizpůsobíme opět pro nejlepší efektivitu svojí práce. Terminálové aplikace se tak dostanou na zcela jinou úroveň, se kterou se často nemohou měřit ani normální aplikace s tlačítky. Batch processing je nenahraditelnou součástí pokročilého používání počítačů, historie příkazů a fuzzy processing je něco, co se jiným operačním systémům ani nesnilo.</p><p>Popis shellů je uveden na arch wiki <a href=https://wiki.archlinux.org/title/Command-line_shell target=_blank rel=noreferrer>Command-Line Shell</a>.</p><p>Základní shelly, které si ukážeme:</p><ul><li><p><code>Bash</code> - nejzákladnější shell v GNU/Linux. POSIX complient. Nutný znát v každém případě.<a href=https://www.gnu.org/software/bash/ target=_blank rel=noreferrer>https://www.gnu.org/software/bash/</a></p></li><li><p><code>Zsh</code> - Interaktivní používání, silný skriptovací jazyk. POSIX complient. <a href=https://www.zsh.org/ target=_blank rel=noreferrer>https://www.zsh.org/</a></p></li><li><p><code>Fish</code> - Není POSIX, jde vlastní cestou. Inteligentní a uživatelsky přívětivý shell příkazového řádku. Fish provádí plnobarevné zvýraznění syntaxe příkazového řádku, stejně jako zvýraznění a dokončení příkazů a jejich argumentů, existence souboru a historie. Podporuje kompletní, jak píšete pro historii a příkazy. Fish je schopen analyzovat manuálové stránky systému, aby určil platné argumenty pro příkazy, což mu umožňuje zvýraznit a dokončit příkazy. Snadnou revizi posledního příkazu lze provést pomocí <code>Alt+Up</code> Pro další info <a href=https://fishshell.com/ target=_blank rel=noreferrer>https://fishshell.com/</a></p></li></ul><h1 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#bash target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h1><h1 class="relative group">Bash<div id=bash class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#bash aria-label=Kotva>#</a></span></h1><p>Bash byl prezentován po celou dobu instalace a používání až do této nahrávky. Pro bash existuje bezpočet návodů, příkladů, psaní skriptů. Určitě doporučuji českou knihu pro shell <a href=https://www.alza.cz/media/prikazovy-radek-v-linuxu-d2366810.htm target=_blank rel=noreferrer>https://www.alza.cz/media/prikazovy-radek-v-linuxu-d2366810.htm</a> Dokumentace je zde <a href=https://www.gnu.org/software/bash/manual/bash.html target=_blank rel=noreferrer>https://www.gnu.org/software/bash/manual/bash.html</a></p><h1 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#zsh target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h1><h1 class="relative group">Zsh<div id=zsh class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#zsh aria-label=Kotva>#</a></span></h1><h2 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#zsh-instalace target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h2><h2 class="relative group">Zsh Instalace<div id=zsh-instalace class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#zsh-instalace aria-label=Kotva>#</a></span></h2><p>My použijeme jako náš systémový shell ZSH.</p><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span>sudo pacman -S zsh
</span></span><span style=display:flex><span>chsh -s /usr/bin/zsh
</span></span><span style=display:flex><span>nvim ~/.zshrc</span></span></code></pre></div></div><p>Použijeme <a href=https://ohmyz.sh/ target=_blank rel=noreferrer>Oh My Zsh</a>. Nebo <a href=https://github.com/ohmyzsh/ohmyzsh target=_blank rel=noreferrer>GitHub OhMyZsh</a>.</p><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span>sh -c &#34;$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)&#34;</span></span></code></pre></div></div><h2 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#zsh-prompt-themes target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h2><h2 class="relative group">Zsh Prompt Themes<div id=zsh-prompt-themes class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#zsh-prompt-themes aria-label=Kotva>#</a></span></h2><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span># Change theme
</span></span><span style=display:flex><span>ZSH_THEME=&#34;robbyrussell&#34;
</span></span><span style=display:flex><span>ZSH_THEME=&#34;agnoster&#34;
</span></span><span style=display:flex><span>ZSH_THEME=&#34;dst&#34;
</span></span><span style=display:flex><span>ZSH_THEME_RANDOM_CANDIDATES=(
</span></span><span style=display:flex><span> &#34;robbyrussell&#34;
</span></span><span style=display:flex><span> &#34;agnoster&#34;
</span></span><span style=display:flex><span> &#34;dst&#34;
</span></span><span style=display:flex><span>)
</span></span><span style=display:flex><span># Need install p10k!
</span></span><span style=display:flex><span>ZSH_THEME=&#34;powerlevel10k/powerlevel10k&#34;</span></span></code></pre></div></div><h2 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#instalace-zsh-plugins target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h2><h2 class="relative group">Instalace Zsh plugins<div id=instalace-zsh-plugins class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#instalace-zsh-plugins aria-label=Kotva>#</a></span></h2><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span>plugins=(git zsh-autosuggestions zsh-syntax-highlighting z fzf sudo pass)
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span># Instalace plginu
</span></span><span style=display:flex><span>git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
</span></span><span style=display:flex><span>git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
</span></span><span style=display:flex><span>#fzf
</span></span><span style=display:flex><span>git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
</span></span><span style=display:flex><span>~/.fzf/install</span></span></code></pre></div></div><h2 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#instalace-colorscript%C5%AF target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h2><h2 class="relative group">Instalace Colorscriptů<div id=instalace-colorscriptů class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#instalace-colorscript%c5%af aria-label=Kotva>#</a></span></h2><p>Colorscripty zkrášlují shell a uvozují danou instanci terminálu.</p><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span># DT Colorscript
</span></span><span style=display:flex><span>git clone https://gitlab.com/dwt1/shell-color-scripts.git
</span></span><span style=display:flex><span>makepkg -cf
</span></span><span style=display:flex><span>sudo pacman -U *.pkg.tar.zst
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span># pokemon-colorscript
</span></span><span style=display:flex><span>paru -S pokemon-colorscripts-git</span></span></code></pre></div></div><h1 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#fish target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h1><h1 class="relative group">Fish<div id=fish class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#fish aria-label=Kotva>#</a></span></h1><p>Arch wiki <a href=https://wiki.archlinux.org/title/Fish target=_blank rel=noreferrer>https://wiki.archlinux.org/title/Fish</a></p><h2 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#fish-instalace target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h2><h2 class="relative group">Fish Instalace<div id=fish-instalace class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#fish-instalace aria-label=Kotva>#</a></span></h2><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span>sudo pacman -S fish
</span></span><span style=display:flex><span># plugin manager - nutno spoustet z fish shell
</span></span><span style=display:flex><span>curl -sL https://git.io/fisher | source &amp;&amp; fisher install jorgebucaran/fisher
</span></span><span style=display:flex><span>fisher list
</span></span><span style=display:flex><span>fisher update jorgebucaran/fisher
</span></span><span style=display:flex><span>fisher remove jorgebucaran/nvm.fish@2.1.0
</span></span><span style=display:flex><span>fisher list | fisher remove
</span></span><span style=display:flex><span># next useful scripts
</span></span><span style=display:flex><span>paru -S lolcat exa fd bat timg p7zip glow</span></span></code></pre></div></div><h2 class="relative group">STARSHIP Cross-Shell Prompt Instalace<div id=starship-cross-shell-prompt-instalace class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#starship-cross-shell-prompt-instalace aria-label=Kotva>#</a></span></h2><p>Hlavní stránka <a href=https://starship.rs/ target=_blank rel=noreferrer>https://starship.rs/</a></p><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span>sh -c &#34;$(curl -fsSL https://starship.rs/install.sh)&#34;
</span></span><span style=display:flex><span># add last line to your config.fish
</span></span><span style=display:flex><span>starship init fish | source</span></span></code></pre></div></div><h3 class="relative group">Personal Starship Settings<div id=personal-starship-settings class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#personal-starship-settings aria-label=Kotva>#</a></span></h3><p>Moje osobní nastavení starship je v dotfiles uloženo v <code>~/.config/starship.toml</code> Toto moje nastavení nepoužívá dvě prompt řádky, ale pouze jednu, plus změnu symbolu. Nejprve zkuste defaultní nastavení a teprve potom můžete testovat tyto změny.</p><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span># Don&#39;t print a new line at the start of the prompt
</span></span><span style=display:flex><span>add_newline = false
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span># Make prompt a single line instead of two lines
</span></span><span style=display:flex><span>[line_break]
</span></span><span style=display:flex><span>disabled = true
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span># Replace the &#34;&#34; symbol in the prompt with &#34;&#34;
</span></span><span style=display:flex><span>[character] # The name of the module we are configuring is &#34;character&#34;
</span></span><span style=display:flex><span>success_symbol = &#34;[➜](bold green)&#34; # The &#34;success_symbol&#34; is set to &#34;&#34; with color &#34;bold green&#34;
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span># Use custom format
</span></span><span style=display:flex><span># format = &#34;&#34;&#34;
</span></span><span style=display:flex><span># [┌───────────────────&gt;](bold green)
</span></span><span style=display:flex><span># [│](bold green)$directory$rust$package
</span></span><span style=display:flex><span># [└─&gt;](bold green) &#34;&#34;&#34;
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span># Disable the package module, hiding it from the prompt completely
</span></span><span style=display:flex><span>[package]
</span></span><span style=display:flex><span>disabled = false</span></span></code></pre></div></div><h2 class="relative group">Fish jako uživatelský interaktivní shell<div id=fish-jako-uživatelský-interaktivní-shell class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#fish-jako-u%c5%beivatelsk%c3%bd-interaktivn%c3%ad-shell aria-label=Kotva>#</a></span></h2><p>Fish budeme používat jako <strong>uživatelský interaktivní shell</strong>, nikoliv jako systémový (pro init si ponecháme POSIX support). Do našeho <code>.zshrc</code> vložíme na konec toto</p><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span># jump from zsh to fish
</span></span><span style=display:flex><span>if [[ $(ps --no-header --pid=$PPID --format=cmd) != &#34;fish&#34; ]]
</span></span><span style=display:flex><span>then
</span></span><span style=display:flex><span> exec fish
</span></span><span style=display:flex><span>fi</span></span></code></pre></div></div><h2 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#fish-raven2cz-dotfiles target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h2><h2 class="relative group">Fish Raven2cz Dotfiles<div id=fish-raven2cz-dotfiles class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#fish-raven2cz-dotfiles aria-label=Kotva>#</a></span></h2><p>Zkopírujte fish adresář do <code>~/.config/fish</code> z raven2cz dotfiles.</p><div class=highlight-wrapper><div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none><code class=language-text data-lang=text><span style=display:flex><span>nvim ~/.config/fish/config.fish</span></span></code></pre></div></div><h1 class="relative group"><a href=https://github.com/raven2cz/tux/tree/main/211112-shell-terminal#d%C5%AFle%C5%BEit%C3%A9-odkazy target=_blank rel=noreferrer></a><div class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=# aria-label=Kotva>#</a></span></h1><p><a href="https://www.youtube.com/watch?v=_K4ESyYuzE0" target=_blank rel=noreferrer>https://www.youtube.com/watch?v=_K4ESyYuzE0</a></p><h1 class="relative group">Důležité odkazy<div id=důležité-odkazy class=anchor></div><span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"><a class="text-primary-300 dark:text-neutral-700 !no-underline" href=#d%c5%afle%c5%beit%c3%a9-odkazy aria-label=Kotva>#</a></span></h1><ul><li><p><a href=https://www.youtube.com/user/tondafischer/featured target=_blank rel=noreferrer>Youtube Channel TUX: Svět Linuxu</a></p></li><li><p><a href=https://archlinux.org/ target=_blank rel=noreferrer>archlinux.org</a></p></li><li><p><a href=https://wiki.archlinux.org/ target=_blank rel=noreferrer>wiki.achlinux.org</a></p></li><li><p><a href=https://fishlive.org/en/blog-tech-art/arch target=_blank rel=noreferrer>fishlive.org/blog</a></p></li><li><p><a href=https://github.com/raven2cz/tux target=_blank rel=noreferrer>github/raven2cz/tux</a></p></li><li><p><a href=https://github.com/raven2cz/dotfiles target=_blank rel=noreferrer>github/raven2cz/dotfiles</a></p></li><li><p><a href=https://peertube.arch-linux.cz/w/dnyPyhvscq4bBRb6zNSNUk target=_blank rel=noreferrer>Peertube kanál Arch Linux Cz</a></p></li></ul></div></div></section><footer class="pt-8 max-w-prose print:hidden"><div class=pt-8><hr class="border-dotted border-neutral-300 dark:border-neutral-600"><div class="flex justify-between pt-3"><span class="flex flex-col"><a class="flex text-neutral-700 hover:text-primary-600 dark:text-neutral dark:hover:text-primary-400" href=/instalace-xfce/><span class=leading-6><span class="inline-block rtl:rotate-180">&larr;</span>&ensp;Instalace Xfce
</span></a><span class="ms-6 mt-1 text-xs text-neutral-500 dark:text-neutral-400"><time datetime=2022-03-18T00:00:00+00:00>18. března 2022</time>
</span></span><span class="flex flex-col items-end"><a class="flex text-right text-neutral-700 hover:text-primary-600 dark:text-neutral dark:hover:text-primary-400" href=/awesomewm-basics/><span class=leading-6>AwesomeWM Basics&ensp;<span class="inline-block rtl:rotate-180">&rarr;</span>
</span></a><span class="me-6 mt-1 text-xs text-neutral-500 dark:text-neutral-400"><time datetime=2022-04-17T00:00:00+00:00>17. dubna 2022</time></span></span></div></div></footer></article><div id=scroll-to-top class="fixed bottom-6 end-6 z-50 transform translate-y-4 opacity-0 duration-200"><a href=#the-top class="pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full bg-neutral/50 text-xl text-neutral-700 hover:text-primary-600 dark:bg-neutral-800/50 dark:text-neutral dark:hover:text-primary-400" aria-label=Nahoru title=Nahoru>&uarr;</a></div></main><footer id=site-footer class="py-10 print:hidden"><div class="flex items-center justify-center"><p class="text-sm text-neutral-500 dark:text-neutral-400 text-center">&copy; 2026 Arch Linux CZ
&#183;
Postaveno na <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href=https://gohugo.io/ target=_blank rel="noopener noreferrer">Hugo</a> & <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href=https://blowfish.page/ target=_blank rel="noopener noreferrer">Blowfish</a>
&#183;
<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500 inline-flex items-center" href=https://git.arch-linux.cz/ArchlinuxCz/web-archlinux_cz target=_blank rel="noopener noreferrer"><span class="relative block icon"><svg viewBox="5.67 143.05 628.65 387.55"><path fill="currentColor" d="M115.912 143.075c-6.462.0-13.762.525-22.012 2.325-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.267.3-26.433.597-39.5.697l.1 117.002s57.4 24.202 83.1 40.102c3.7 2.3 10.2 6.798 12.9 14.398 2.1 6.1 2 13.101-1 19.301l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12l-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8a5290.322 5290.322.0 0027 12.954c0-36.449-.1-109.053-.1-109.053-29 .4-89.2-2.201-89.2-2.201s-141.4-7.1-156.8-8.5c-4.9-.3-10.525-.825-16.988-.825zm12.188 48.026s7.1 59.399 15.7 94.199c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1z"/><path fill="currentColor" d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"/></svg></span>
<span class=ml-1>Repo</span></a></p></div></footer><div id=search-wrapper class="invisible fixed inset-0 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm dark:bg-neutral-900/50 sm:p-6 md:p-[10vh] lg:p-[12vh] z-500" data-url=https://arch-linux.cz/><div id=search-modal class="flex flex-col w-full max-w-3xl min-h-0 mx-auto border rounded-md shadow-lg top-20 border-neutral-200 bg-neutral dark:border-neutral-700 dark:bg-neutral-800"><header class="relative z-10 flex items-center justify-between flex-none px-2"><form class="flex items-center flex-auto min-w-0"><div class="flex items-center justify-center w-8 h-8 text-neutral-400"><span class="relative block icon"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" class="svg-inline--fa fa-search fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M505 442.7 405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9.0 208 0S0 93.1.0 208s93.1 208 208 208c48.3.0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9.0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7.0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7.0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></svg></span></div><input type=search id=search-query class="flex flex-auto h-12 mx-1 bg-transparent appearance-none focus:outline-dotted focus:outline-2 focus:outline-transparent" placeholder=Hledat tabindex=0></form><button id=close-search-button class="flex items-center justify-center w-8 h-8 text-neutral-700 hover:text-primary-600 dark:text-neutral dark:hover:text-primary-400" title="Zavřít (Esc)">
<span class="relative block icon"><svg viewBox="0 0 320 512"><path fill="currentColor" d="M310.6 361.4c12.5 12.5 12.5 32.75.0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3 54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75.0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75.0-45.25s32.75-12.5 45.25.0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25.0s12.5 32.75.0 45.25l-105.4 105.4L310.6 361.4z"/></svg></span></button></header><section class="flex-auto px-2 overflow-auto"><ul id=search-results></ul></section></div></div></div></body></html>