mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 00:29:08 +00:00 
			
		
		
		
	Simplify a few unsets
This commit is contained in:
		@@ -231,6 +231,5 @@ else
 | 
				
			|||||||
  print "omz: invalid keymap: $keymap" >&2
 | 
					  print "omz: invalid keymap: $keymap" >&2
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
unset keymap
 | 
					unset key{map,}
 | 
				
			||||||
unset key
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,8 +13,7 @@ if zstyle -t ':omz:module:history-substring-search' case-sensitive; then
 | 
				
			|||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ! zstyle -t ':omz:module:history-substring-search' color; then
 | 
					if ! zstyle -t ':omz:module:history-substring-search' color; then
 | 
				
			||||||
  unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
 | 
					  unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_{FOUND,NOT_FOUND}
 | 
				
			||||||
  unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
 | 
					 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bindkey -M emacs "$keyinfo[Control]P" history-substring-search-up
 | 
					bindkey -M emacs "$keyinfo[Control]P" history-substring-search-up
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -61,5 +61,5 @@ for color in {0..255}; do
 | 
				
			|||||||
  FG[$color]="\e[38;5;${color}m"
 | 
					  FG[$color]="\e[38;5;${color}m"
 | 
				
			||||||
  BG[$color]="\e[48;5;${color}m"
 | 
					  BG[$color]="\e[48;5;${color}m"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
unset colors color index
 | 
					unset color{s,} index
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,6 +63,5 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Tidy up after ourselves.
 | 
					# Tidy up after ourselves.
 | 
				
			||||||
unfunction _ssh-agent-start
 | 
					unfunction _ssh-agent-start
 | 
				
			||||||
unset _ssh_agent_forwarding
 | 
					unset _ssh_agent_{env,forwarding}
 | 
				
			||||||
unset _ssh_agent_env
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user