From 10c33ec9a4de393a857d20b881192cc427e5962a Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 9 Oct 2014 20:35:48 -0400 Subject: [PATCH] Convert tabs to spaces --- modules/archive/functions/lsarchive | 2 +- modules/terminal/init.zsh | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/archive/functions/lsarchive b/modules/archive/functions/lsarchive index bac540f..f7bc785 100644 --- a/modules/archive/functions/lsarchive +++ b/modules/archive/functions/lsarchive @@ -46,7 +46,7 @@ while (( $# > 0 )); do || rar ${${verbose:+v}:-l} "$1" ;; (*.7z) 7za l "$1" ;; (*) - print "$0: cannot list: $1" >&2 + print "$0: cannot list: $1" >&2 success=1 ;; esac diff --git a/modules/terminal/init.zsh b/modules/terminal/init.zsh index e35b77d..64cc635 100644 --- a/modules/terminal/init.zsh +++ b/modules/terminal/init.zsh @@ -91,34 +91,34 @@ if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]] \ && ( ! [[ -n "$STY" || -n "$TMUX" || -n "$DVTM" ]] ) then # Sets the Terminal.app current working directory before the prompt is - # displayed. + # displayed. add-zsh-hook precmd _terminal-set-terminal-app-proxy-icon - # Unsets the Terminal.app current working directory when a terminal - # multiplexer or remote connection is started since it can no longer be + # Unsets the Terminal.app current working directory when a terminal + # multiplexer or remote connection is started since it can no longer be # updated, and it becomes confusing when the directory displayed in the title # bar is no longer synchronized with real current working directory. - function _terminal-unset-terminal-app-proxy-icon { + function _terminal-unset-terminal-app-proxy-icon { if [[ "${2[(w)1]:t}" == (screen|tmux|dvtm|ssh|mosh) ]]; then _terminal-set-terminal-app-proxy-icon ' ' fi - } - add-zsh-hook preexec _terminal-unset-terminal-app-proxy-icon + } + add-zsh-hook preexec _terminal-unset-terminal-app-proxy-icon # Do not set the tab and window titles in Terminal.app since it sets the tab # title to the currently running process by default and the current working # directory is set separately. - return + return fi # Set up non-Apple terminals. if zstyle -t ':prezto:module:terminal' auto-title \ && ( ! [[ -n "$STY" || -n "$TMUX" ]] ) then - # Sets the tab and window titles before the prompt is displayed. - add-zsh-hook precmd _terminal-set-titles-with-path + # Sets the tab and window titles before the prompt is displayed. + add-zsh-hook precmd _terminal-set-titles-with-path - # Sets the tab and window titles before command execution. - add-zsh-hook preexec _terminal-set-titles-with-command + # Sets the tab and window titles before command execution. + add-zsh-hook preexec _terminal-set-titles-with-command fi