mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 12:09:08 +00:00 
			
		
		
		
	Compare commits
	
		
			13 Commits
		
	
	
		
			revision/u
			...
			pull/533-g
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					d196c6a15a | ||
| 
						 | 
					8189577772 | ||
| 
						 | 
					c74cf4b5e0 | ||
| 
						 | 
					72782528aa | ||
| 
						 | 
					02717cb4c1 | ||
| 
						 | 
					bccfca8c10 | ||
| 
						 | 
					b8bb51d7b5 | ||
| 
						 | 
					00e12b7a98 | ||
| 
						 | 
					232313e2a0 | ||
| 
						 | 
					e48dac79f3 | ||
| 
						 | 
					dbeb6d4e1a | ||
| 
						 | 
					af003d83c5 | ||
| 
						 | 
					839f4a7b83 | 
@@ -22,11 +22,7 @@ Aliases
 | 
				
			|||||||
-------
 | 
					-------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - `d` prints the contents of the directory stack.
 | 
					  - `d` prints the contents of the directory stack.
 | 
				
			||||||
 | 
					  - `1 ... 9` changes the directory to the **n** previous one.
 | 
				
			||||||
Functions
 | 
					 | 
				
			||||||
---------
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  - `command_not_found_handler` changes the directory to the **n** previous one.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Authors
 | 
					Authors
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,13 +0,0 @@
 | 
				
			|||||||
#
 | 
					 | 
				
			||||||
# Changes the directory to the n previous one.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Authors:
 | 
					 | 
				
			||||||
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if [[ "$1" == [[:digit:]]## ]]; then
 | 
					 | 
				
			||||||
  builtin cd "+$1"
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
  return 127
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@@ -27,4 +27,5 @@ unsetopt CLOBBER            # Do not overwrite existing files with > and >>.
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
alias d='dirs -v'
 | 
					alias d='dirs -v'
 | 
				
			||||||
 | 
					for index ({1..9}) alias "$index"="cd +${index}"; unset index
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,8 +32,8 @@ alias g='git'
 | 
				
			|||||||
# Branch (b)
 | 
					# Branch (b)
 | 
				
			||||||
alias gb='git branch'
 | 
					alias gb='git branch'
 | 
				
			||||||
alias gbc='git checkout -b'
 | 
					alias gbc='git checkout -b'
 | 
				
			||||||
alias gbl='git branch -v'
 | 
					alias gbl='git branch -vv'
 | 
				
			||||||
alias gbL='git branch -av'
 | 
					alias gbL='git branch -avv'
 | 
				
			||||||
alias gbx='git branch -d'
 | 
					alias gbx='git branch -d'
 | 
				
			||||||
alias gbX='git branch -D'
 | 
					alias gbX='git branch -D'
 | 
				
			||||||
alias gbm='git branch -m'
 | 
					alias gbm='git branch -m'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,17 +9,20 @@ Aliases
 | 
				
			|||||||
  - `cdf` changes the current working director to the current _Finder_
 | 
					  - `cdf` changes the current working director to the current _Finder_
 | 
				
			||||||
    directory.
 | 
					    directory.
 | 
				
			||||||
  - `pushdf` pushes the current working directory onto the directory queue and
 | 
					  - `pushdf` pushes the current working directory onto the directory queue and
 | 
				
			||||||
  - `ql` quick looks at files.
 | 
					    changes the current working director to the current _Finder_ directory.
 | 
				
			||||||
  - `rm-osx-cruft` deletes .DS\_Store, \_\_MACOSX cruft.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Functions
 | 
					Functions
 | 
				
			||||||
---------
 | 
					---------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - `manb` opens _man_ pages in [_Bwana.app_][2].
 | 
					  - `mand` opens _man_ pages in [_Dash.app_][2].
 | 
				
			||||||
  - `manp` opens _man_ pages in _Preview.app_.
 | 
					  - `manp` opens _man_ pages in _Preview.app_.
 | 
				
			||||||
  - `pfd` prints the current _Finder_ directory.
 | 
					  - `pfd` prints the current _Finder_ directory.
 | 
				
			||||||
  - `pfs` prints the current _Finder_ selection.
 | 
					  - `pfs` prints the current _Finder_ selection.
 | 
				
			||||||
  - `tab` creates a new tab (works in both _Terminal_ and [_iTerm_][3]).
 | 
					  - `tab` creates a new tab (works in both _Terminal_ and [_iTerm_][3]).
 | 
				
			||||||
 | 
					  - `ql` previews files in Quick Look.
 | 
				
			||||||
 | 
					  - `osx-rm-dir-metadata` deletes .DS\_Store, \_\_MACOSX cruft.
 | 
				
			||||||
 | 
					  - `osx-ls-download-history` displays the Mac OS X download history.
 | 
				
			||||||
 | 
					  - `osx-rm-download-history` deletes the Mac OS X download history.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Authors
 | 
					Authors
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
@@ -29,7 +32,6 @@ Authors
 | 
				
			|||||||
  - [Sorin Ionescu](https://github.com/sorin-ionescu)
 | 
					  - [Sorin Ionescu](https://github.com/sorin-ionescu)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[1]: http://www.apple.com/macosx/
 | 
					[1]: http://www.apple.com/macosx/
 | 
				
			||||||
[2]: http://bruji.com/bwana/
 | 
					[2]: http://kapeli.com/dash
 | 
				
			||||||
[3]: http://www.iterm2.com/
 | 
					[3]: http://www.iterm2.com/
 | 
				
			||||||
[4]: https://github.com/sorin-ionescu/prezto/issues
 | 
					[4]: https://github.com/sorin-ionescu/prezto/issues
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
#compdef manb manp
 | 
					#compdef mand manp
 | 
				
			||||||
#autoload
 | 
					#autoload
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Completes manb and manp.
 | 
					# Completes mand and manp.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Authors:
 | 
					# Authors:
 | 
				
			||||||
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
					#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
				
			||||||
@@ -1,24 +0,0 @@
 | 
				
			|||||||
#
 | 
					 | 
				
			||||||
# Opens man pages in Bwana.app.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Authors:
 | 
					 | 
				
			||||||
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function manb {
 | 
					 | 
				
			||||||
  local page
 | 
					 | 
				
			||||||
  if (( $# > 0 )); then
 | 
					 | 
				
			||||||
    for page in "$@"; do
 | 
					 | 
				
			||||||
      open "man:$page" 2>/dev/null
 | 
					 | 
				
			||||||
      if (( $? != 0 )); then
 | 
					 | 
				
			||||||
        print "$0: Bwana is not installed" >&2
 | 
					 | 
				
			||||||
        break
 | 
					 | 
				
			||||||
      fi
 | 
					 | 
				
			||||||
    done
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    print 'What manual page do you want?' >&2
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
manb "$@"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
							
								
								
									
										21
									
								
								modules/osx/functions/mand
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								modules/osx/functions/mand
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					#
 | 
				
			||||||
 | 
					# Opens man pages in Dash.app.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Authors:
 | 
				
			||||||
 | 
					#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function mand {
 | 
				
			||||||
 | 
					  if (( $# > 0 )); then
 | 
				
			||||||
 | 
					    open "dash://manpages:$1" 2>/dev/null
 | 
				
			||||||
 | 
					    if (( $? != 0 )); then
 | 
				
			||||||
 | 
					      print "$0: Dash is not installed" >&2
 | 
				
			||||||
 | 
					      break
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					    print 'What manual page do you want?' >&2
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					mand "$@"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										13
									
								
								modules/osx/functions/osx-ls-download-history
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/osx/functions/osx-ls-download-history
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					#
 | 
				
			||||||
 | 
					# Displays the Mac OS X download history.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Authors:
 | 
				
			||||||
 | 
					#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local db
 | 
				
			||||||
 | 
					for db in ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV*; do
 | 
				
			||||||
 | 
					  if grep -q 'LSQuarantineEvent' < <(sqlite3 "$db" .tables); then
 | 
				
			||||||
 | 
					    sqlite3 "$db" 'SELECT LSQuarantineDataURLString FROM LSQuarantineEvent'
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
							
								
								
									
										11
									
								
								modules/osx/functions/osx-rm-dir-metadata
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								modules/osx/functions/osx-rm-dir-metadata
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					#
 | 
				
			||||||
 | 
					# Deletes .DS_Store and __MACOSX directories.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Authors:
 | 
				
			||||||
 | 
					#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					find "${@:-$PWD}" \( \
 | 
				
			||||||
 | 
					  -type f -name '.DS_Store' -o \
 | 
				
			||||||
 | 
					  -type d -name '__MACOSX' \
 | 
				
			||||||
 | 
					\) -print0 | xargs -0 rm -rf
 | 
				
			||||||
							
								
								
									
										13
									
								
								modules/osx/functions/osx-rm-download-history
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/osx/functions/osx-rm-download-history
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					#
 | 
				
			||||||
 | 
					# Deletes the Mac OS X download history.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Authors:
 | 
				
			||||||
 | 
					#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local db
 | 
				
			||||||
 | 
					for db in ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV*; do
 | 
				
			||||||
 | 
					  if grep -q 'LSQuarantineEvent' < <(sqlite3 "$db" .tables); then
 | 
				
			||||||
 | 
					    sqlite3 "$db" 'DELETE FROM LSQuarantineEvent; VACUUM'
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
@@ -7,7 +7,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
osascript 2>/dev/null <<EOF
 | 
					osascript 2>/dev/null <<EOF
 | 
				
			||||||
  tell application "Finder"
 | 
					  tell application "Finder"
 | 
				
			||||||
    return POSIX path of (target of window 1 as alias)
 | 
					    return POSIX path of (target of first window as text)
 | 
				
			||||||
  end tell
 | 
					  end tell
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,14 +5,11 @@
 | 
				
			|||||||
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
					#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
osascript 2>/dev/null <<EOF
 | 
					osascript 2>&1 <<EOF
 | 
				
			||||||
  set output to ""
 | 
					 | 
				
			||||||
  tell application "Finder" to set the_selection to selection
 | 
					  tell application "Finder" to set the_selection to selection
 | 
				
			||||||
  set item_count to count the_selection
 | 
					  if the_selection is not {}
 | 
				
			||||||
  repeat with item_index from 1 to count the_selection
 | 
					    repeat with an_item in the_selection
 | 
				
			||||||
    if item_index is less than item_count then set the_delimiter to "\n"
 | 
					      log POSIX path of (an_item as text)
 | 
				
			||||||
    if item_index is item_count then set the_delimiter to ""
 | 
					    end repeat
 | 
				
			||||||
    set output to output & ((item item_index of the_selection as alias)'s POSIX path) & the_delimiter
 | 
					  end if
 | 
				
			||||||
  end repeat
 | 
					 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								modules/osx/functions/ql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								modules/osx/functions/ql
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					#
 | 
				
			||||||
 | 
					# Previews files in Quick Look.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Authors:
 | 
				
			||||||
 | 
					#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if (( $# > 0 )); then
 | 
				
			||||||
 | 
					  qlmanage -p "$@" &> /dev/null
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
@@ -14,26 +14,8 @@ fi
 | 
				
			|||||||
# Aliases
 | 
					# Aliases
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Change directory to the current Finder directory.
 | 
					# Changes directory to the current Finder directory.
 | 
				
			||||||
alias cdf='cd "$(pfd)"'
 | 
					alias cdf='cd "$(pfd)"'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Push directory to the current Finder directory.
 | 
					# Pushes directory to the current Finder directory.
 | 
				
			||||||
alias pushdf='pushd "$(pfd)"'
 | 
					alias pushdf='pushd "$(pfd)"'
 | 
				
			||||||
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Functions
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Open files in Quick Look.
 | 
					 | 
				
			||||||
function ql {
 | 
					 | 
				
			||||||
  (( $# > 0 )) && qlmanage -p "$@" &> /dev/null
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Delete .DS_Store and __MACOSX directories.
 | 
					 | 
				
			||||||
function rm-osx-cruft {
 | 
					 | 
				
			||||||
  find "${@:-$PWD}" \( \
 | 
					 | 
				
			||||||
    -type f -name '.DS_Store' -o \
 | 
					 | 
				
			||||||
    -type d -name '__MACOSX' \
 | 
					 | 
				
			||||||
  \) -print0 | xargs -0 rm -rf
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,6 +28,7 @@ if (( $+commands[$_pacman_frontend] )); then
 | 
				
			|||||||
    source "${0:h}/${_pacman_frontend}.zsh"
 | 
					    source "${0:h}/${_pacman_frontend}.zsh"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 | 
					  _pacman_frontend='pacman'
 | 
				
			||||||
  _pacman_sudo='sudo '
 | 
					  _pacman_sudo='sudo '
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -36,7 +37,7 @@ fi
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Pacman.
 | 
					# Pacman.
 | 
				
			||||||
alias pac= "${_pacman_frontend}"
 | 
					alias pac="${_pacman_frontend}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Installs packages from repositories.
 | 
					# Installs packages from repositories.
 | 
				
			||||||
alias paci="${_pacman_sudo}${_pacman_frontend} --sync"
 | 
					alias paci="${_pacman_sudo}${_pacman_frontend} --sync"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@ Local Gem Installation
 | 
				
			|||||||
----------------------
 | 
					----------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
When a Ruby version manager is not detected, local gems are installed in
 | 
					When a Ruby version manager is not detected, local gems are installed in
 | 
				
			||||||
*~/Library/Ruby/Gems/1.8* on Mac OS X.
 | 
					*~/.gems*; otherwise, they are installed according to the manager.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RVM
 | 
					RVM
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
@@ -23,12 +23,27 @@ may conflict with shell scripts.
 | 
				
			|||||||
rbenv
 | 
					rbenv
 | 
				
			||||||
-----
 | 
					-----
 | 
				
			||||||
 | 
					
 | 
				
			||||||
An alternative RVM is to use [rbenv][3], which allows for switching between multiple,
 | 
					An alternative RVM is to use [rbenv][3], which allows for switching between
 | 
				
			||||||
isolated Ruby installations in the home directory.
 | 
					multiple, isolated Ruby installations in the home directory.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
While it is not as feature rich as RVM, it is not loaded into the shell and is
 | 
					While it is not as feature rich as RVM, it is not loaded into the shell and is
 | 
				
			||||||
not known to cause conflicts with shell scripts.
 | 
					not known to cause conflicts with shell scripts.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					chruby
 | 
				
			||||||
 | 
					------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Yet another alternative is [chruby][6], which is simpler than both RVM and
 | 
				
			||||||
 | 
					rbenv.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Settings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### Auto-Switch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To enable auto switching the Ruby version on directory change based on the
 | 
				
			||||||
 | 
					.ruby-version file, add the following line to *zpreztorc*:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Bundler
 | 
					Bundler
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -87,4 +102,4 @@ Authors
 | 
				
			|||||||
[3]: https://github.com/sstephenson/rbenv
 | 
					[3]: https://github.com/sstephenson/rbenv
 | 
				
			||||||
[4]: http://gembundler.com
 | 
					[4]: http://gembundler.com
 | 
				
			||||||
[5]: https://github.com/sorin-ionescu/prezto/issues
 | 
					[5]: https://github.com/sorin-ionescu/prezto/issues
 | 
				
			||||||
 | 
					[6]: https://github.com/postmodern/chruby
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,8 @@ if (( $+commands[rvm-prompt] )); then
 | 
				
			|||||||
  version="$(rvm-prompt)"
 | 
					  version="$(rvm-prompt)"
 | 
				
			||||||
elif (( $+commands[rbenv] )); then
 | 
					elif (( $+commands[rbenv] )); then
 | 
				
			||||||
  version="$(rbenv version-name)"
 | 
					  version="$(rbenv version-name)"
 | 
				
			||||||
 | 
					elif (( $+commands[ruby] )); then
 | 
				
			||||||
 | 
					  version="${${$(ruby --version)[(w)1,(w)2]}/ /-}"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Format version.
 | 
					# Format version.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,6 +23,13 @@ elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
 | 
				
			|||||||
elif (( $+commands[rbenv] )); then
 | 
					elif (( $+commands[rbenv] )); then
 | 
				
			||||||
  eval "$(rbenv init - --no-rehash zsh)"
 | 
					  eval "$(rbenv init - --no-rehash zsh)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Load package manager installed chruby into the shell session.
 | 
				
			||||||
 | 
					elif (( $+commands[chruby-exec] )); then
 | 
				
			||||||
 | 
					  source "${commands[chruby-exec]:h:h}/share/chruby/chruby.sh"
 | 
				
			||||||
 | 
					  if zstyle -t ':prezto:module:ruby:chruby' auto-switch; then
 | 
				
			||||||
 | 
					    source "${commands[chruby-exec]:h:h}/share/chruby/auto.sh"
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Prepend local gems bin directories to PATH.
 | 
					# Prepend local gems bin directories to PATH.
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  path=($HOME/.gem/ruby/*/bin(N) $path)
 | 
					  path=($HOME/.gem/ruby/*/bin(N) $path)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,6 +50,7 @@ Aliases
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### Disabled File Globbing
 | 
					### Disabled File Globbing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  - `bower`
 | 
				
			||||||
  - `fc`
 | 
					  - `fc`
 | 
				
			||||||
  - `find`
 | 
					  - `find`
 | 
				
			||||||
  - `ftp`
 | 
					  - `ftp`
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,6 +34,7 @@ alias mysql='nocorrect mysql'
 | 
				
			|||||||
alias rm='nocorrect rm'
 | 
					alias rm='nocorrect rm'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Disable globbing.
 | 
					# Disable globbing.
 | 
				
			||||||
 | 
					alias bower='noglob bower'
 | 
				
			||||||
alias fc='noglob fc'
 | 
					alias fc='noglob fc'
 | 
				
			||||||
alias find='noglob find'
 | 
					alias find='noglob find'
 | 
				
			||||||
alias ftp='noglob ftp'
 | 
					alias ftp='noglob ftp'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -87,6 +87,13 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
 | 
				
			|||||||
# Auto set to 'off' on dumb terminals.
 | 
					# Auto set to 'off' on dumb terminals.
 | 
				
			||||||
zstyle ':prezto:module:prompt' theme 'sorin'
 | 
					zstyle ':prezto:module:prompt' theme 'sorin'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Ruby
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Auto switch the Ruby version on directory change.
 | 
				
			||||||
 | 
					# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Screen
 | 
					# Screen
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user