Aller au contenu

zsh

F.A.Q.

Manuel

Guide

Moving to zsh

Mastering-zsh

cd automatique:
~ master
❯ Docu <tab><enter>

~/Documents master
❯

Recursive path expansion:

~ master
❯ /u/lo/b <tab><enter>

/usr/local/bin
❯
~ master
❯ /U/b/doc <tab><enter>

~/Documents master
Auto correction:
❯ ce Documents
zsh: correct 'ce' to 'cd' [nyae]?
[nyae]?

n: no. Ne corrige pas et exécute la commande entrée.

[bruno@silverbook/~] $ lx
zsh: correct 'lx' to 'ls' [nyae]? n
zsh: command not found: lx

y: yes. Corrige et exécute la modification suggérée par zsh.

[bruno@silverbook/~] $ lx
zsh: correct 'lx' to 'ls' [nyae]? y
Applications             Movies                   Sites
Applications (Parallels) Music                    SynologyDrive
Brewfile                 Nextcloud                backup_list.conf
Cloud                    OneDrive                 pCloud Drive
Desktop                  Parallels                path
Documents                Pictures                 plugins.d
Downloads                Public                   project
Dropbox                  PycharmProjects
Library                  Shared with me

a: abort. Ne fait rien et affiche un nouveau prompt.

$ setfile
zsh: correct 'setfile' to 'SetFile' [nyae]? a
$

e: edit. Editer la ligne.

$ setfile
zsh: correct 'setfile' to 'SetFile' [nyae]? e
$ setfile|
shebang:
#!/bin/zsh
Emuler sh:
#!/bin/zsh --emulate sh

Dernière mise à jour: January 25, 2020