User Tools

Site Tools


zsh

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
zsh [2020-09-10 11:51:37]
mi
zsh [2026-07-14 16:32:43] (current)
mi
Line 9: Line 9:
 * History: * History:
 (See also https://​unix.stackexchange.com/​a/​111777/​7286) (See also https://​unix.stackexchange.com/​a/​111777/​7286)
 +
 +(Should add "​export"​ before definitions?​)
  
   HISTFILE=${ZDOTDIR:​-$HOME}/​.zsh_history   HISTFILE=${ZDOTDIR:​-$HOME}/​.zsh_history
Line 30: Line 32:
  
   alias history='​fc -l -i 1'   alias history='​fc -l -i 1'
 +  # or
 +  alias history='​history -i 0'
  
 * case-insensitive globbing, and don't tab-complete all directly : * case-insensitive globbing, and don't tab-complete all directly :
Line 35: Line 39:
   setopt NO_CASE_GLOB   setopt NO_CASE_GLOB
   setopt GLOB_COMPLETE   setopt GLOB_COMPLETE
 +
 +* Allow comments in interactive shells
 +
 +  setopt interactive_comments
 +  # or
 +  set -k
 +  # or 
 +  echo "​setopt INTERACTIVE_COMMENTS"​ >> ~/.zshrc
 +  # or 
 +  echo "​setopt INTERACTIVE_COMMENTS"​ | sudo tee -a /etc/zshrc
 +
 +* fix Ctrl-U to delete left
 +
 +  echo '​bindkey \^U backward-kill-line'​ >> ~/.zshrc
  
  
/docs/dokuwiki/data/attic/zsh.1599731497.txt.gz ยท Last modified: 2020-09-10 11:51:37 by mi