X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=6b646b5a42ccec8a8bdbb2e55e6ea5e23ec3530a;hb=00f6bae72e77b3772413cfa5b7cf790b6e670935;hp=7429b9b6f8e7baf2619c5086617af27ec672ce63;hpb=202cacb4e429c5c65ae95fe15e23a0e0da606971;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 7429b9b..6b646b5 100644 --- a/zsh/rc +++ b/zsh/rc @@ -220,8 +220,8 @@ if [[ $ZSH_VERSION == (4.3.<9->*|4.<4->*|<5->*) || # Load vcs_info to display information about version control repositories. autoload -Uz vcs_info - # Only look for git and mercurial repositories; the only I use. - zstyle ':vcs_info:*' enable git hg + # Only look for certain VCS. + zstyle ':vcs_info:*' enable git # Check the repository for changes so they can be used in %u/%c (see # below). This comes with a speed penalty for bigger repositories. zstyle ':vcs_info:*' check-for-changes yes @@ -853,6 +853,15 @@ source_config ~/.zsh/rc.local # RUN COMMANDS +# Make sure the multiplexer is available. Otherwise the exec terminates our +# session. +if [[ -n $zshrc_use_multiplexer ]]; then + if ! (( $+commands[$zshrc_use_multiplexer] )); then + echo "Multiplexer '$zshrc_use_multiplexer' not found." >&2 + zshrc_use_multiplexer= + fi +fi + # If not already in screen or tmux, reattach to a running session or create a # new one. This also starts screen/tmux on a remote server when connecting # through ssh.