From 2f5a072302b720721ebcccdc8375f10d97a72162 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 14 Mar 2010 23:56:11 +0100 Subject: [PATCH] zsh/rc: Use ' instead of " when possible, drop them if unnecessary. --- zsh/rc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zsh/rc b/zsh/rc index c0a453e..0e1e2c9 100644 --- a/zsh/rc +++ b/zsh/rc @@ -120,11 +120,11 @@ my-vi-history-beginning-search-backward() { zle vi-forward-char fi } -bindkey "^P" my-vi-history-beginning-search-backward -bindkey -a "^P" history-beginning-search-backward # binding for Vi-mode +bindkey '^P' my-vi-history-beginning-search-backward +bindkey -a '^P' history-beginning-search-backward # binding for Vi-mode # Here only Vi-mode is necessary as ^P enters Vi-mode and ^N only makes sense # after calling ^P. -bindkey -a "^N" history-beginning-search-forward +bindkey -a '^N' history-beginning-search-forward # PROMPT SETTINGS @@ -305,11 +305,11 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then [[ -z $window_reset ]] && return # Reset the window name to 'zsh'. - local name="zsh" + local name=zsh # If the function was called with an argument then reset the window # name to '.zsh' (used by clear alias). if [[ -n $1 ]]; then - name=".zsh" + name=.zsh fi # Prepend prefixes like in window_preexec(). @@ -364,7 +364,7 @@ zstyle ':completion:*' completer _complete _match _correct _approximate setopt nolistambiguous # Allow completions in the middle of a text, i.e. "/usr/bin/whatever" # completes like "/usr/bin/". Useful when adding new options to commands. -bindkey "^I" expand-or-complete-prefix +bindkey '^I' expand-or-complete-prefix # Try uppercase if the currently typed string doesn't match. This allows # typing in lowercase most of the time and completion fixes the case. zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' @@ -477,7 +477,7 @@ if [[ $(uname) == Linux ]]; then # Settings when creating Debian packages. DEBEMAIL=simon@ruderich.org export DEBEMAIL - DEBFULLNAME="Simon Ruderich" + DEBFULLNAME='Simon Ruderich' export DEBFULLNAME elif [[ $(uname) == Darwin ]]; then # Mac OS X -- 2.44.2