mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 07:29:09 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			revision/d
			...
			module/com
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					5f675b0c67 | 
@@ -73,7 +73,7 @@ while (( $# > 0 )); do
 | 
			
		||||
  esac
 | 
			
		||||
 | 
			
		||||
  (( success = $success > 0 ? $success : $? ))
 | 
			
		||||
  (( $success == 0 && $remove_archive == 0 )) && rm "$1"
 | 
			
		||||
  (( $success == 0 )) && (( $remove_archive == 0 )) && rm "$1"
 | 
			
		||||
  shift
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -61,6 +61,44 @@ zstyle ':completion:*' format ' %F{yellow}-- %d --%f'
 | 
			
		||||
zstyle ':completion:*' group-name ''
 | 
			
		||||
zstyle ':completion:*' verbose yes
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Don't autoexpand until nothing else has changed on line
 | 
			
		||||
zstyle ':completion:*' keep-prefix true
 | 
			
		||||
zstyle ':completion:*' expand prefix suffix
 | 
			
		||||
# zstyle ':completion:*' suffix true
 | 
			
		||||
 | 
			
		||||
# Complete ..
 | 
			
		||||
zstyle ':completion:*' special-dirs ..
 | 
			
		||||
 | 
			
		||||
# Do not select the current directory when executing cd ../<tab>.
 | 
			
		||||
zstyle ':completion:*:cd:*' ignore-parents parent pwd
 | 
			
		||||
 | 
			
		||||
# Do not perform completion on pastes containing tabs.
 | 
			
		||||
zstyle ':completion:*' insert-tab pending
 | 
			
		||||
 | 
			
		||||
# Some completion settings
 | 
			
		||||
# zstyle ':completion:*:match:*' match-original only
 | 
			
		||||
zstyle ':completion:*' insert-unambiguous true
 | 
			
		||||
 | 
			
		||||
# Expand partial paths.
 | 
			
		||||
# zstyle ':completion:*' squeeze-slashes true
 | 
			
		||||
 | 
			
		||||
# Rehash when failing to find the executable.
 | 
			
		||||
zstyle ':completion:*' rehash true
 | 
			
		||||
 | 
			
		||||
# Add a recent director listing completion using the cdr command
 | 
			
		||||
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
 | 
			
		||||
add-zsh-hook chpwd chpwd_recent_dirs
 | 
			
		||||
zstyle ':completion:*:*:cdr:*:*' menu selection
 | 
			
		||||
zstyle ':chpwd:*' recent-dirs-default true
 | 
			
		||||
zstyle ':completion:*' recent-dirs-insert both
 | 
			
		||||
zstyle ':chpwd:*' recent-dirs-prune parent
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Fuzzy match mistyped completions.
 | 
			
		||||
zstyle ':completion:*' completer _complete _match _approximate
 | 
			
		||||
zstyle ':completion:*:match:*' original only
 | 
			
		||||
@@ -123,10 +161,8 @@ zstyle ':completion:*:*:kill:*' force-list always
 | 
			
		||||
zstyle ':completion:*:*:kill:*' insert-ids single
 | 
			
		||||
 | 
			
		||||
# Man
 | 
			
		||||
# zstyle ':completion:*:manuals' separate-sections true
 | 
			
		||||
# zstyle ':completion:*:manuals.(^1*)' insert-sections true
 | 
			
		||||
zstyle ':completion:*:manuals.*' insert-sections   true
 | 
			
		||||
zstyle ':completion:*:man:*' menu yes select
 | 
			
		||||
zstyle ':completion:*:manuals' separate-sections true
 | 
			
		||||
zstyle ':completion:*:manuals.(^1*)' insert-sections true
 | 
			
		||||
 | 
			
		||||
# Media Players
 | 
			
		||||
zstyle ':completion:*:*:mpg123:*' file-patterns '*.(mp3|MP3):mp3\ files *(-/):directories'
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ function is-autoloadable {
 | 
			
		||||
 | 
			
		||||
# Checks if a name is a command, function, or alias.
 | 
			
		||||
function is-callable {
 | 
			
		||||
  (( $+commands[$1] || $+functions[$1] || $+aliases[$1] ))
 | 
			
		||||
  (( $+commands[$1] )) || (( $+functions[$1] )) || (( $+aliases[$1] ))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Checks a boolean variable for "true".
 | 
			
		||||
 
 | 
			
		||||
@@ -22,3 +22,4 @@ alias brews='brew search'
 | 
			
		||||
alias brewu='brew upgrade'
 | 
			
		||||
alias brewU='brew update && brew upgrade'
 | 
			
		||||
alias brewx='brew remove'
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -57,7 +57,7 @@ FG[none]="$FX[none]"
 | 
			
		||||
BG[none]="$FX[none]"
 | 
			
		||||
colors=(black red green yellow blue magenta cyan white)
 | 
			
		||||
for color in {0..255}; do
 | 
			
		||||
  if (( $color >= 0 && $color < $#colors )); then
 | 
			
		||||
  if (( $color >= 0 )) && (( $color < $#colors )); then
 | 
			
		||||
    index=$(( $color + 1 ))
 | 
			
		||||
    FG[$colors[$index]]="\e[38;5;${color}m"
 | 
			
		||||
    BG[$colors[$index]]="\e[48;5;${color}m"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user