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 revision
Previous revision
apps:zsh [2019-01-29 14:22] – [zshrc] Typo jensapps:zsh [2020-05-09 17:16] (current) – New zshrc for git branch jens
Line 48: Line 48:
 <WRAP 50% round download> <WRAP 50% round download>
 {{wiki:zshrc.gz|}}\\ {{wiki:zshrc.gz|}}\\
-Size: 1,kB+Size: 2,kB
 </WRAP> </WRAP>
  
Line 58: Line 58:
  
 This file will give you these options (amongst others): This file will give you these options (amongst others):
-  * A nice colored prompt which tells you user, hostname, PTY, path and time. The color is mainly red when root and green when you are working as user.\\ A colored prompt is also very useful when scrolling in your terminal or console history to distinguish the output from what you typed!+  * A nice colored prompt which tells you user, hostname, PTY (if root), [[git]] branch (if user), path and time. The color is mainly red when root and green when you are working as user.\\ A colored prompt is also very useful when scrolling in your terminal or console history to distinguish the output from what you typed!
   * A umask based on UID as well (less strict as user).   * A umask based on UID as well (less strict as user).
   * Nice and useful dircolors, aliases and environment variables.   * Nice and useful dircolors, aliases and environment variables.
Line 70: Line 70:
 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. 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''      | Show the last 15 entries of your history.                             | 
-''history -1''   | Show all history entries.                                             | +''history 0''    | Show all history entries.                                             | 
-''history -i''   | Show the last 15 history entries including human readable timestamps. | +''history -i''   | Show the last 15 history entries including human readable timestamps. | 
-''history -i 1'' | Show all history entries including human readable timestamps.         |+''history -i 0'' | 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. 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