User Tools

Site Tools



(my favourite shell)


PS1="%F{cyan}(%F{green}%B%n%F{cyan}@%F{green}%m%b%F{cyan})%f %\$[ \$COLUMNS - 50 ]<..<%~ %<<%B%(#.%F{red}#.%F{blue}$)%f%b "
setopt promptsubst

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


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
docs/tips_n_tricks/zsh.html.txt · Last modified: 30.03.2024 01:34 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki