サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
zsh.sourceforge.io
Version 5.9 Updated May 14, 2022 Original documentation by Paul Falstad This is a texinfo version of the documentation for the Z Shell, originally by Paul Falstad. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this man
16.2.2 Completion ALWAYS_LAST_PROMPT <D> If unset, key functions that list completions try to return to the last prompt if given a numeric argument. If set these functions try to return to the last prompt if given no numeric argument. ALWAYS_TO_END If a completion is performed with the cursor within a word, and a full completion is inserted, the cursor is moved to the end of the word. That is, the
14.1.4 Modifiers After the optional word designator, you can add a sequence of one or more of the following modifiers, each preceded by a ‘:’. These modifiers also work on the result of filename generation and parameter expansion, except where noted. a Turn a file name into an absolute path: prepends the current directory, if necessary; remove ‘.’ path segments; and remove ‘..’ path segments and t
17 Shell Builtin Commands Some shell builtin commands take options as described in individual entries; these are often referred to in the list below as ‘flags’ to avoid confusion with shell options, which may also have an effect on the behaviour of builtin commands. In this introductory section, ‘option’ always has the meaning of an option to a command that should be familiar to most command line
Table of Contents Previous Chapter Next Chapter Chapter 6: Completion, old and new Completion of command arguments is something zsh is particularly good at. The simplest case is that you hit <TAB>, and the shell guesses what has to go there and fills it in for you: % ls myfile theirfile yourfile % cat t<TAB> expands the command line to % cat theirfile and you only had to type the initial letter, t
Changes between 5.8.1 and 5.9 Incompatibilities compinit: A "y" response to the "Ignore ... and continue?" prompt removes insecure elements from the set of completion functions, where previously it ignored the compaudit result and included all elements. Build-time change: The default value of the --enable-gdbm configure argument has changed from "yes" to "no". Thus, the zsh/db/gdbm module will not
For details of the changes, see the release notes. 2022-05-14 : Release 5.9 Security and bug fix release with several feature additions. zsh 5.9 is dedicated to the memory of Sven Guckes. 2022-04-08 : New zsh logo A new logo has been contributed to the project. Samples and a style guide are at https://github.com/Zsh-art/logo. We are very grateful to Justin Dorfman and Reblaze. 2022-02-12 : Release
You can either download the zsh source from one of the mirrors or from Sourceforge. Download zsh 5.9 from Sourceforge (-doc contains the documentation/man pages): As xzed tar archive: zsh-5.9.tar.xz (3.2MiB, gpg signature), zsh-5.9-doc.tar.xz (3.1MiB, gpg signature) All files are signed with the following OpenPGP keys: pub 2048R/4BDB27B3 2015-11-25 Key fingerprint = F7B2 754C 7DE2 8309 1466 1F0E A
13.2.3 Shell state %# A ‘#’ if the shell is running with privileges, a ‘%’ if not. Equivalent to ‘%(!.#.%%)’. The definition of ‘privileged’, for these purposes, is that either the effective user ID is zero, or, if POSIX.1e capabilities are supported, that at least one capability is raised in either the Effective or Inheritable capability vectors. %? The return status of the last command executed
20.1 Description This describes the shell code for the ‘new’ completion system, referred to as compsys. It is written in shell functions based on the features described in the previous chapter, Completion Widgets. The features are contextual, sensitive to the point at which completion is started. Many completions are already provided. For this reason, a user can perform a great many tasks without
26.2.1 Accessing On-Line Help The key sequence ESC h is normally bound by ZLE to execute the run-help widget (see Zsh Line Editor). This invokes the run-help command with the command word from the current input line as its argument. By default, run-help is an alias for the man command, so this often fails when the command word is a shell builtin or a user-defined function. By redefining the run-he
9.1 Autoloading Functions A function can be marked as undefined using the autoload builtin (or ‘functions -u’ or ‘typeset -fu’). Such a function has no body. When the function is first executed, the shell searches for its definition using the elements of the fpath variable. Thus to define functions for autoloading, a typical sequence is: The usual alias expansion during reading will be suppressed
18.3 Zle Builtins The ZLE module contains three related builtin commands. The bindkey command manipulates keymaps and key bindings; the vared command invokes ZLE on the value of a shell parameter; and the zle command manipulates editing widgets and allows command line access to ZLE commands from within shell functions. bindkey [ options ] -l [ -L ] [ keymap ... ] bindkey [ options ] -d bindkey [ o
The Zsh manual is available in the following formats: HTML, Browsable Hypertext HTML (tarred and gzipped package, 628KiB) PostScript (European A4 size paper, gzipped, 1.0MiB) PostScript (US letter size paper, gzipped, 1.0MiB) PDF (European A4 size paper, 1.8MiB) PDF (US letter size paper, 3.1MiB) DVI (gzipped, 748KiB) INFO (tarred and gzipped package, 460KiB) TexInfo source (gzipped, 436KiB) As su
Introduction Filename Generation Startup Files Shell Functions Directories Directory Stacks Command/Process Substitution Aliasing History Command Line Editing Bindings Parameter Substitution Shell Parameters Prompting Login/Logout Watching Options Closing Comments Concept Index Variables Index Functions Index Key Index This document was generated on 30 November 1995 using the texi2html translator
This document was generated on May 14, 2022 using texi2html 5.0. Zsh version 5.9, released on May 14, 2022.
A User's Guide to the Z-Shell Peter Stephenson 2003/03/23 Table of Contents Chapter 1: A short introduction 1.1: Other shells and other guides 1.2: Versions of zsh 1.3: Conventions 1.4: Acknowledgments Chapter 2: What to put in your startup files 2.1: Types of shell: interactive and login shells 2.1.1: What is a login shell? Simple tests 2.2: All the startup files 2.3: Options 2.4: Parameters 2.4.
Zsh is a shell designed for interactive use, although it is also a powerful scripting language. Many of the useful features of bash, ksh, and tcsh were incorporated into zsh; many original features were added. The introductory document details some of the unique features of zsh. It assumes basic knowledge of the standard UNIX shells; the intent is to show a reader already familiar with one of the
このページを最初にブックマークしてみませんか?
『ZSH - THE Z SHELL』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く