mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 19:48:00 +00:00
Convert tabs to spaces
This commit is contained in:
parent
9b1f39f267
commit
10c33ec9a4
@ -46,7 +46,7 @@ while (( $# > 0 )); do
|
|||||||
|| rar ${${verbose:+v}:-l} "$1" ;;
|
|| rar ${${verbose:+v}:-l} "$1" ;;
|
||||||
(*.7z) 7za l "$1" ;;
|
(*.7z) 7za l "$1" ;;
|
||||||
(*)
|
(*)
|
||||||
print "$0: cannot list: $1" >&2
|
print "$0: cannot list: $1" >&2
|
||||||
success=1
|
success=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -91,34 +91,34 @@ if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]] \
|
|||||||
&& ( ! [[ -n "$STY" || -n "$TMUX" || -n "$DVTM" ]] )
|
&& ( ! [[ -n "$STY" || -n "$TMUX" || -n "$DVTM" ]] )
|
||||||
then
|
then
|
||||||
# Sets the Terminal.app current working directory before the prompt is
|
# Sets the Terminal.app current working directory before the prompt is
|
||||||
# displayed.
|
# displayed.
|
||||||
add-zsh-hook precmd _terminal-set-terminal-app-proxy-icon
|
add-zsh-hook precmd _terminal-set-terminal-app-proxy-icon
|
||||||
|
|
||||||
# Unsets the Terminal.app current working directory when a terminal
|
# Unsets the Terminal.app current working directory when a terminal
|
||||||
# multiplexer or remote connection is started since it can no longer be
|
# multiplexer or remote connection is started since it can no longer be
|
||||||
# updated, and it becomes confusing when the directory displayed in the title
|
# updated, and it becomes confusing when the directory displayed in the title
|
||||||
# bar is no longer synchronized with real current working directory.
|
# 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
|
if [[ "${2[(w)1]:t}" == (screen|tmux|dvtm|ssh|mosh) ]]; then
|
||||||
_terminal-set-terminal-app-proxy-icon ' '
|
_terminal-set-terminal-app-proxy-icon ' '
|
||||||
fi
|
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
|
# 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
|
# title to the currently running process by default and the current working
|
||||||
# directory is set separately.
|
# directory is set separately.
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up non-Apple terminals.
|
# Set up non-Apple terminals.
|
||||||
if zstyle -t ':prezto:module:terminal' auto-title \
|
if zstyle -t ':prezto:module:terminal' auto-title \
|
||||||
&& ( ! [[ -n "$STY" || -n "$TMUX" ]] )
|
&& ( ! [[ -n "$STY" || -n "$TMUX" ]] )
|
||||||
then
|
then
|
||||||
# Sets the tab and window titles before the prompt is displayed.
|
# Sets the tab and window titles before the prompt is displayed.
|
||||||
add-zsh-hook precmd _terminal-set-titles-with-path
|
add-zsh-hook precmd _terminal-set-titles-with-path
|
||||||
|
|
||||||
# Sets the tab and window titles before command execution.
|
# Sets the tab and window titles before command execution.
|
||||||
add-zsh-hook preexec _terminal-set-titles-with-command
|
add-zsh-hook preexec _terminal-set-titles-with-command
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user