DeskTux

Linux on Desktops

User Tools

Site Tools


apps:zsh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
apps:zsh [2016-08-11 20:44] – [zlogin] jensapps:zsh [2019-01-29 14:18] – Adding History Explanation jens
Line 66: Line 66:
   * Updates of the terminal title w/ either username and hostname (when you are at a prompt) or the currently running command (when running a command).   * Updates of the terminal title w/ either username and hostname (when you are at a prompt) or the currently running command (when running a command).
   * An example of how to learn a specific filetype extension for a specific command when using tab-completion. E.g. if you type "gunzip" and then press ''<Tab>'' you only want to see ".gz"-files.\\ The only extension I could think of that the ZSH doesn't know about out-of-the-box is ".par2". So the example is about "par2repair" and .par2-files.   * An example of how to learn a specific filetype extension for a specific command when using tab-completion. E.g. if you type "gunzip" and then press ''<Tab>'' you only want to see ".gz"-files.\\ The only extension I could think of that the ZSH doesn't know about out-of-the-box is ".par2". So the example is about "par2repair" and .par2-files.
 +
 +===== History =====
 +The ''history'' command of the ZSH works different than the BASH history. By default, only the last 15 history entries are shown. You could just ''grep'' or ''less'' your ''~/.zsh_history'' file for getting the information you want, but there are more convenient ways.
 +
 +^ ''history''      | Show the last 15 entries of your history.                             |
 +^ ''history -1''   | Show all history entries.                                             |
 +^ ''history -i''   | Show the last 15 history entries including human readable timestamps. |
 +^ ''history -i 1'' | Show all history entries including human readable timestamps.         |
 +
 +All history entries are always numbered. Note that human readable timestamps only work with the extended history enabled.
apps/zsh.txt · Last modified: 2020-05-09 17:16 by jens