mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 01:39:09 +00:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			865cc2ef02
			...
			77edfff10e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 77edfff10e | |||
| 
						 | 
					51c4ff6de4 | ||
| 
						 | 
					3ea20cfbe8 | ||
| 
						 | 
					0aef8086b5 | 
@@ -52,9 +52,9 @@ if ssh-add -l 2>&1 | grep -q 'The agent has no identities'; then
 | 
			
		||||
  # program specified by SSH_ASKPASS and open an X11 window to read the
 | 
			
		||||
  # passphrase.
 | 
			
		||||
  if [[ -n "$DISPLAY" && -x "$SSH_ASKPASS" ]]; then
 | 
			
		||||
    ssh-add ${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}} < /dev/null 2> /dev/null
 | 
			
		||||
    ssh-add ${_ssh_identities:+$_ssh_dir/${^~_ssh_identities[@]}} < /dev/null 2> /dev/null
 | 
			
		||||
  else
 | 
			
		||||
    ssh-add ${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}} 2> /dev/null
 | 
			
		||||
    ssh-add ${_ssh_identities:+$_ssh_dir/${^~_ssh_identities[@]}} 2> /dev/null
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -196,12 +196,14 @@ fi
 | 
			
		||||
# Serves a directory via HTTP.
 | 
			
		||||
if (( $#commands[(i)python(|[23])] )); then
 | 
			
		||||
  autoload -Uz is-at-least
 | 
			
		||||
  if is-at-least 3 ${"$(python --version 2>&1)"[(w)2]}; then
 | 
			
		||||
    alias http-serve='python -m http.server'
 | 
			
		||||
  elif (( $+commands[python3] )); then
 | 
			
		||||
  if (( $+commands[python3] )); then
 | 
			
		||||
    alias http-serve='python3 -m http.server'
 | 
			
		||||
  elif (( $+commands[python2] )); then
 | 
			
		||||
    alias http-serve='python2 -m SimpleHTTPServer'
 | 
			
		||||
  elif is-at-least 3 ${"$(python --version 2>&1)"[(w)2]}; then
 | 
			
		||||
    alias http-serve='python -m http.server'
 | 
			
		||||
  else
 | 
			
		||||
    alias http-serve='$commands[(i)python(|2)] -m SimpleHTTPServer'
 | 
			
		||||
    alias http-serve='python -m SimpleHTTPServer'
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user