KozmoNaut wrote:Now that I've begun using Konsole instead of plain ol' Xterm, shift+tab is broken again for autocompletion. I can't even ctrl+v to see the keycode

I had a similar problem with unicode-rxvt. Adding
Code: Select all
+ I Test (Init) Exec xmodmap -e 'keysym Tab = Tab'
to my .fvwm2rc allows shift + tab to work for me. YMMV.
babilen wrote:I had a cool feature enabled some months ago in zsh command history cycling with the arrow keys but deleted it unintentianlly.... when i entered something like
Code:
ls <arrow-key-up>
zsh just cycled through all the commands in my history which started with ls.... Anybody knows how to re-enable it???
This should do the trick:
Code: Select all
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
Personally, I prefer having PgUp and PgDn scroll through specific commands. Here's the bindings for that:
Code: Select all
bindkey "\e[5~" history-search-backward
bindkey "\e[6~" history-search-forward
petrjanda wrote:The SystemRescue CD uses zsh as the default shell. One function that I noticed is that if I mistype a command for example "grpe" it will ask me to change it to "grep". How do i go about setting this up?
It would be useful if you had the .zshrc from the cd if you want exactly the same functionality. For example, the following allows one error per word and will not add possible completions that have extra characters:
Code: Select all
zstyle ':completion:::::' completer _complete _correct
zstyle ':completion:*:correct:::' max-errors 1
With that, grpe is corrected to grep with <tab> on my computer.
Alternatively, _approximate could be used.
Code: Select all
zstyle ':completion:::::' completer _complete _approximate
zstyle -e ':completion:*:approximate:::' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/4 )) numeric )'
which would produce something like this after a <tab>:
Code: Select all
------------------------------------->> corrections
grep grep-changelog grep-changelog-22.0.0 grepseti
------------------------------------->> original
grpe
Also the max-errors line allows 1 error for every 4 characters typed.