<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.squi.fr/index.php?action=history&amp;feed=atom&amp;title=Zsh</id>
	<title>Zsh - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.squi.fr/index.php?action=history&amp;feed=atom&amp;title=Zsh"/>
	<link rel="alternate" type="text/html" href="https://wiki.squi.fr/index.php?title=Zsh&amp;action=history"/>
	<updated>2026-06-12T02:37:57Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.squi.fr/index.php?title=Zsh&amp;diff=2258&amp;oldid=prev</id>
		<title>Justine le 22 juin 2022 à 12:09</title>
		<link rel="alternate" type="text/html" href="https://wiki.squi.fr/index.php?title=Zsh&amp;diff=2258&amp;oldid=prev"/>
		<updated>2022-06-22T12:09:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 22 juin 2022 à 12:09&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:prog]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:zsh]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Les bases =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Les bases =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Justine</name></author>
	</entry>
	<entry>
		<id>https://wiki.squi.fr/index.php?title=Zsh&amp;diff=1560&amp;oldid=prev</id>
		<title>Justine : Page créée avec « = Les bases =  Zsh est un autre Shell. Il apporte un certain nombre de nouvelles fonctionnalités par rapport à Bash, il est d&#039;ailleurs plus récent : correction orthogra... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.squi.fr/index.php?title=Zsh&amp;diff=1560&amp;oldid=prev"/>
		<updated>2020-09-27T22:09:57Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « = Les bases =  Zsh est un autre Shell. Il apporte un certain nombre de nouvelles fonctionnalités par rapport à Bash, il est d&amp;#039;ailleurs plus récent : correction orthogra... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Les bases =&lt;br /&gt;
&lt;br /&gt;
Zsh est un autre Shell. Il apporte un certain nombre de nouvelles fonctionnalités par rapport à Bash, il est d&amp;#039;ailleurs plus récent : correction orthographique, une meilleure utilisation de l&amp;#039;autocomplétion...&lt;br /&gt;
&lt;br /&gt;
== Installer zsh ==&lt;br /&gt;
&lt;br /&gt;
 pacman -S zsh&lt;br /&gt;
&lt;br /&gt;
== OhMyZsh ==&lt;br /&gt;
Omzsh est un framework qui permet d&amp;#039;améliorer zsh à l&amp;#039;aide de plugin et de le configurer. Pour l&amp;#039;instant, la principale utilisation que je vois est celle des thèmes. On peut faire des ajustements dans le .zshrc :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;zsh&amp;quot;&amp;gt;&lt;br /&gt;
# If you come from bash you might have to change your $PATH.&lt;br /&gt;
# export PATH=$HOME/bin:/usr/local/bin:$PATH&lt;br /&gt;
&lt;br /&gt;
# Path to your oh-my-zsh installation.&lt;br /&gt;
export ZSH=&amp;quot;/home/justine/.oh-my-zsh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Set name of the theme to load --- if set to &amp;quot;random&amp;quot;, it will&lt;br /&gt;
# load a random theme each time oh-my-zsh is loaded, in which case,&lt;br /&gt;
# to know which specific one was loaded, run: echo $RANDOM_THEME&lt;br /&gt;
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes&lt;br /&gt;
ZSH_THEME=&amp;quot;duellj&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Le lien donné dedans contient tous les thèmes.&lt;br /&gt;
&lt;br /&gt;
On peut aussi ajouter des plugins : &lt;br /&gt;
&lt;br /&gt;
https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins&lt;br /&gt;
&lt;br /&gt;
Il suffit d&amp;#039;ajouter les bonnes lignes dans le zshrc :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;zsh&amp;quot;&amp;gt;&lt;br /&gt;
plugins=(git extract z)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fonctionnalités utiles ==&lt;br /&gt;
&lt;br /&gt;
=== Correction orthographique ===&lt;br /&gt;
Zsh repère les erreurs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
~ &amp;gt;&amp;gt;&amp;gt; ehco salut                                                                                                                           &lt;br /&gt;
zsh: correct &amp;#039;ehco&amp;#039; to &amp;#039;echo&amp;#039; [nyae]? &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Oh my zsh enlève cette fonction...&lt;br /&gt;
&lt;br /&gt;
=== Raccourcir les chemins absolus ===&lt;br /&gt;
&lt;br /&gt;
On est pas obligé de taper les chemins en entier dans zsh, il peut compléter tout seul. Je ne trouve pas ça très utiles quand l&amp;#039;autocomplétion existe, m&amp;#039;enfin bon:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
ls /u/sh/ico&lt;br /&gt;
#Amène à&lt;br /&gt;
/usr/share/icons &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Encore une fois, Oh my zsh enlève ça ?! De toute façon , ça n&amp;#039;est pas génial.&lt;br /&gt;
&lt;br /&gt;
=== Alias ===&lt;br /&gt;
Une fonctionnalité de Oh My Zsh, on a de nouveaux alias :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
cd ../.. = ...&lt;br /&gt;
cd ../../.. = ....&lt;br /&gt;
mkdir -p = md&lt;br /&gt;
rmdir = rd&lt;br /&gt;
git add = ga&lt;br /&gt;
git add --all = gaa&lt;br /&gt;
git branch = gb&lt;br /&gt;
git commit -m = gcmsg&lt;br /&gt;
git checkout = gco&lt;br /&gt;
git pull origin currentbranch = ggpull&lt;br /&gt;
git push origin currentbranch = ggpush&lt;br /&gt;
systemctl start = sc-start&lt;br /&gt;
systemctl stop = sc-stop&lt;br /&gt;
systemctl status = sc-status&lt;br /&gt;
systemctl enable = sc-enable&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Gestion de l&amp;#039;historique ===&lt;br /&gt;
&lt;br /&gt;
La gestion de l&amp;#039;historique et l&amp;#039;autocomplétion sont bien mieux. Si je veux retaper ma commande &amp;quot;kill firefox&amp;quot; que j&amp;#039;ai utilisée il y&amp;#039;a un moment, je peux juste taper &amp;quot;ki&amp;quot; et la flèche du haut pour la récupérer.&lt;br /&gt;
&lt;br /&gt;
=== Résumer les options d&amp;#039;une commande ===&lt;br /&gt;
&lt;br /&gt;
Plutôt que d&amp;#039;avoir à faire un help ou je ne sais quoi, on peut récupérer simplement les options d&amp;#039;une commande. Il suffit de taper la commande, puis un tiret, puis tab : on a tous les arguments de détaillés. Super utile.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
└─[$] ls -b                                                                                                                       [0:03:27]&lt;br /&gt;
-1  -- single column output&lt;br /&gt;
-A  -- list all except . and ..&lt;br /&gt;
-a  -- list entries starting with .&lt;br /&gt;
-B  -- don&amp;#039;t list entries ending with ~&lt;br /&gt;
-C  -- list entries in columns sorted vertically&lt;br /&gt;
-c  -- status change time&lt;br /&gt;
-D  -- generate output designed for Emacs&amp;#039; dired mode&lt;br /&gt;
-d  -- list directory entries instead of contents&lt;br /&gt;
-F  -- append file type indicators&lt;br /&gt;
-f  -- unsorted, all, short list&lt;br /&gt;
-G  -- inhibit display of group information&lt;br /&gt;
-g  -- long listing but without owner information&lt;br /&gt;
[...]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Globbing ===&lt;br /&gt;
&lt;br /&gt;
De nouvelles fonctionnalités de globbing sont là aussi. On peut avoir plusieurs niveax de *:&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
└─[$] ls **/*      &lt;br /&gt;
└─[$] ls */*.txt  &lt;br /&gt;
#Etc&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also search for words or phrases within the file names.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
## Starts with READ&lt;br /&gt;
$ ls **/(READ)*.*&lt;br /&gt;
## Ends With READ&lt;br /&gt;
$ ls **/*(READ).*&lt;br /&gt;
## Contains READ Anywhere&lt;br /&gt;
$ ls **/*(READ)*.*&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s a really awkward way to list files. There are a couple of very easy ways to specify files and folders.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
# Files Only&lt;br /&gt;
$ ls **/*(.)&lt;br /&gt;
# Folders Only&lt;br /&gt;
$ ls **/*(/)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also specify one of a number of characters.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
# All files that start with A&lt;br /&gt;
$ ls **/[A]*(.)&lt;br /&gt;
# All files that start with A or a&lt;br /&gt;
$ ls **/[Aa]*(.)&lt;br /&gt;
# All Files that contain the number&lt;br /&gt;
$ ls **/*[1]*(.)&lt;br /&gt;
# Any files that end in a vowel&lt;br /&gt;
$ ls **/*[aeiouy](.)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to exclude a character or characters, you can do that too.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
# Files that don&amp;#039;t start with A or a&lt;br /&gt;
$ ls **/[^Aa](.)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can search for ranges of letters also.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
# Files that end in a number&lt;br /&gt;
$ ls **/*&amp;lt;1-10&amp;gt;(.)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Justine</name></author>
	</entry>
</feed>