Difference between revisions of "Zsh"
Jump to navigation
Jump to search
Tomjaguarpaw (talk | contribs) (Deleting page that hasn't been updated for over 10 years) |
|||
Line 1: | Line 1: | ||
− | ==Z Shell Completion for GHC, Cabal and Hugs== |
||
− | |||
− | The Z Shell is a powerful shell with extensive completion support. |
||
− | |||
− | ==Features== |
||
− | |||
− | The <tt>_ghc</tt> script supports completion for <tt>ghc</tt> and |
||
− | <tt>ghc-pkg</tt>. The completion features include the following: |
||
− | |||
− | * all options with a description for each option |
||
− | * directories |
||
− | * package names |
||
− | * system libraries (<tt>-l</tt> option) |
||
− | * <tt>ghc-pkg</tt> commands |
||
− | |||
− | The <tt>_cabal</tt> script support completion for the <tt>cabal</tt> |
||
− | command. The completion features include the following: |
||
− | |||
− | * Cabal commands |
||
− | * all options with a description for each option |
||
− | * directories |
||
− | * package names |
||
− | |||
− | The <tt>_hugs</tt> script provides completion for options. |
||
− | |||
− | ==Installation== |
||
− | |||
− | Put the <tt>_ghc</tt>, <tt>_cabal</tt> and <tt>_hugs</tt> scripts in a path |
||
− | that <tt>zsh</tt> searches during autoloading, for example |
||
− | <tt>/usr/share/zsh/functions</tt> or a private directory (which |
||
− | must be added to the <tt>FPATH</tt> environment variable). |
||
− | |||
− | Completion must be enabled by adding to <tt>.zshrc</tt> the |
||
− | following lines: |
||
− | |||
− | autoload -U compinit |
||
− | compinit |
||
− | |||
− | Completion functionality can be configured using styles. |
||
− | These are set with the <tt>zstyle</tt> function. |
||
− | |||
− | Here are some examples: |
||
− | |||
− | zstyle ':completion:*' completer _complete _match _approximate |
||
− | zstyle ':completion:*' use-cache on |
||
− | zstyle ':completion:*:approximate:*' max-errors 1 numeric |
||
− | |||
− | See the <tt>zsh</tt> documenation for details on configuring the |
||
− | completion system. |
||
− | |||
− | ==Download== |
||
− | |||
− | [http://gemi.fedorapeople.org/haskell/_ghc _ghc] |
||
− | [http://gemi.fedorapeople.org/haskell/_hugs _hugs] |
||
− | [http://gemi.fedorapeople.org/haskell/_cabal _cabal] |
||
− | |||
− | [[Category:Tools]] |