User Tools

Site Tools


docs:tips_n_tricks:zsh.html

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
docs:tips_n_tricks:zsh.html [04.07.2018 13:35 CEST] peterdocs:tips_n_tricks:zsh.html [30.03.2024 01:34 CET] (current) peter
Line 8: Line 8:
 setopt promptsubst setopt promptsubst
 </code> </code>
 +===== Disable autocompletion =====
 +
 +Incorrect command specific autocompletion can be annoying - e.g. if for the ''cvs'' command only files and directories are considered, which are already under //cvs// control - but this is applied to ''cvs add'' as well.
 +
 +A simple fix is to reset autocompletion for arguments of a specific command to its default to take all files into account. On modern (as of 2023) Debian-oid Linux sytems, this can be done by
 +
 +  compdef _files cvs
 +
 +__Credits:__
 +  * [[https://unix.stackexchange.com/a/677295|This Answer to 'Disable zsh "smart" autocompletion for gem command, but keep ordinary path completion' on stackexchange]]
 +===== History operations =====
 +Save history since shell start or last save:
 +  fc -I -A
 +Read history since shell start or last read:
 +  fc -I -R
 +Show history with full time
 +  history -E
 ======  ====== ======  ======
 {{entry>Linux}} {{entry>Linux}}
 {{entry>Shell}} {{entry>Shell}}
 {{entry>zsh}} {{entry>zsh}}
-{{tag>Linux Shell zsh}}+{{entry>cvs}} 
 +{{tag>Linux Shell zsh cvs}}
docs/tips_n_tricks/zsh.html.1530704126.txt.gz · Last modified: 04.07.2018 13:35 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki