X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=afb0a560a0bf69fb2929aab2c0a9855723d8a66b;hb=24e8d3be9f59a015d4292b09beb38ea707a260be;hp=8a66912650cac1817e04a77182edf198dd3a664e;hpb=5e0079d9a49cd1d132548dcbc9bd464406037bc4;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 8a66912..afb0a56 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2269,6 +2269,7 @@ grml_theme_add_token: Token `%s'\'' exists! Giving up!\n\n' $name return 2 fi if (( init )); then + REPLY='' $token $name token=$REPLY fi @@ -2314,6 +2315,7 @@ function grml_prompt_addto () { zstyle -s ":prompt:${grmltheme}:${lr}:items:$it" token new \ || new=${grml_prompt_token_default[$it]} if (( ${+grml_prompt_token_function[$it]} )); then + REPLY='' ${grml_prompt_token_function[$it]} $it else case $it in @@ -2525,7 +2527,7 @@ function grml_cmd_to_screen_title () { function grml_control_xterm_title () { case $TERM in (xterm*|rxvt*) - set_title "${(%):-"%n@%m:"}" "$1" + set_title "${(%):-"%n@%m:"}" "$2" ;; esac } @@ -3733,6 +3735,9 @@ if check_com -c hg ; then fi # end of check whether we have the 'hg'-executable +# disable bracketed paste mode for dumb terminals +[[ "$TERM" == dumb ]] && unset zle_bracketed_paste + # grml-small cleanups and workarounds # The following is used to remove zsh-config-items that do not work