X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=bda2c6e347fb38ecec97af7e38cc67b3e805d4b6;hb=642dc80b30610a45455d5954fb31cf5a65f071d8;hp=4620ef4ac62e6fc378426cac382598af970ad5b8;hpb=9afa45be5bdd161ff78de40d1daf113e6c85aaee;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 4620ef4..bda2c6e 100644 --- a/zsh/rc +++ b/zsh/rc @@ -373,7 +373,7 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then # in the term/outer screen. if [[ $program_name == @screen ]]; then program_name="@:${$(hostname)//.*/}" - # Use "@:!hostname" for root commands. + # Use "@:!hostname" for root screens. elif [[ $program_name == @!screen ]]; then program_name="@:!${$(hostname)//.*/}" fi @@ -428,6 +428,10 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then # Add the preexec() and precmd() hooks. add-zsh-hook preexec window_preexec add-zsh-hook precmd window_precmd +else + # Fallback if another TERM is used, necessary to run screen (see below in + # "RUN COMMANDS"). + window_preexec() { } fi @@ -483,6 +487,13 @@ zstyle ':completion:*' ignore-line yes # complete to the same and change it. zstyle ':completion:*:(mv|cp):*' ignore-line no +# Provide a fallback completer which always completes files. Useful when Zsh's +# completion is too "smart". Thanks to Frank Terbeck +# (http://www.zsh.org/mla/users/2009/msg01038.html). +zle -C complete-files complete-word _generic +zstyle ':completion:complete-files:*' completer _files +bindkey '^F' complete-files + # CUSTOM ALIASES AND FUNCTIONS