Started renaming Oh My Zsh to Prezto

This commit is contained in:
Bjarki Ágúst Guðmundsson 2012-08-03 15:29:01 +00:00
parent 4d86e9c591
commit f749fc7d90
10 changed files with 28 additions and 28 deletions

View file

@ -1,24 +1,24 @@
Oh My Zsh Prezto
========= ======
OMZ is a configuration framework for [Zsh][1] that enriches the command line Prezto is a configuration framework for [Zsh][1] that enriches the command line
interface environment with sane defaults, aliases, functions, auto completion, interface environment with sane defaults, aliases, functions, auto completion,
and prompt themes. and prompt themes.
Installation Installation
------------ ------------
Oh My Zsh will work with any recent release of Zsh, but the minimum recommended Prezto will work with any recent release of Zsh, but the minimum recommended
version is 4.3.10. version is 4.3.10.
1. Clone the repository: 1. Clone the repository:
git clone --recursive https://github.com/sorin-ionescu/oh-my-zsh.git ~/.oh-my-zsh git clone --recursive https://github.com/sorin-ionescu/prezto.git ~/.prezto
2. Create a new Zsh configuration by copying the Zsh configuration file 2. Create a new Zsh configuration by copying the Zsh configuration file
templates provided: templates provided:
for rcfile in ~/.oh-my-zsh/templates/z{shenv,shrc,login,logout}; do for rcfile in ~/.prezto/templates/z{shenv,shrc,login,logout}; do
cp -f $rcfile ~/.$rcfile:t cp -f $rcfile ~/.$rcfile:t
done done
@ -49,14 +49,14 @@ directories end up at the tail of the array.
### Troubleshooting ### Troubleshooting
If you are not able to find certain commands after switching to *Oh My Zsh*, If you are not able to find certain commands after switching to Prezto,
modify the `PATH` variable in *~/.zshenv* then open a new Zsh terminal modify the `PATH` variable in *~/.zshenv* then open a new Zsh terminal
window or tab. window or tab.
Usage Usage
----- -----
Oh My Zsh has many features disabled by default. Read the source code and Prezto has many features disabled by default. Read the source code and
accompanying README files to learn of what is available. accompanying README files to learn of what is available.
### Modules ### Modules
@ -83,7 +83,7 @@ how to use Git, follow this [tutorial][5] and bookmark this [reference][6].
### Completions ### Completions
Submit program completions to the [zsh-completions][7] project. The Oh My Zsh Submit program completions to the [zsh-completions][7] project. The Prezto
completions directory will be synchronized against it. completions directory will be synchronized against it.
Resources Resources

View file

@ -30,7 +30,7 @@ function autoloadable {
( unfunction $1 ; autoload -U +X $1 ) &> /dev/null ( unfunction $1 ; autoload -U +X $1 ) &> /dev/null
} }
# Loads Oh My Zsh modules. # Loads Prezto modules.
function omodload { function omodload {
local -a omodules local -a omodules
local omodule local omodule
@ -45,11 +45,11 @@ function omodload {
setopt LOCAL_OPTIONS EXTENDED_GLOB setopt LOCAL_OPTIONS EXTENDED_GLOB
# Add functions to fpath. # Add functions to fpath.
fpath=(${omodules:+${OMZ}/modules/${^omodules}/functions(/FN)} $fpath) fpath=(${omodules:+${PREZTO}/modules/${^omodules}/functions(/FN)} $fpath)
# Load Oh My Zsh functions. # Load Prezto functions.
for ofunction in \ for ofunction in \
$OMZ/modules/${^omodules}/functions/^([_.]*|prompt_*_setup|README*)(.N:t) $PREZTO/modules/${^omodules}/functions/^([_.]*|prompt_*_setup|README*)(.N:t)
do do
autoload -Uz "$ofunction" autoload -Uz "$ofunction"
done done
@ -58,12 +58,12 @@ function omodload {
for omodule in "$omodules[@]"; do for omodule in "$omodules[@]"; do
if zstyle -t ":omz:module:$omodule" loaded; then if zstyle -t ":omz:module:$omodule" loaded; then
continue continue
elif [[ ! -d "$OMZ/modules/$omodule" ]]; then elif [[ ! -d "$PREZTO/modules/$omodule" ]]; then
print "$0: no such module: $omodule" >&2 print "$0: no such module: $omodule" >&2
continue continue
else else
if [[ -s "$OMZ/modules/$omodule/init.zsh" ]]; then if [[ -s "$PREZTO/modules/$omodule/init.zsh" ]]; then
source "$OMZ/modules/$omodule/init.zsh" source "$PREZTO/modules/$omodule/init.zsh"
fi fi
if (( $? == 0 )); then if (( $? == 0 )); then

View file

@ -1,5 +1,5 @@
# #
# Initializes Oh My Zsh. # Initializes Prezto.
# #
# Authors: # Authors:
# Robby Russell <robby@planetargon.com> # Robby Russell <robby@planetargon.com>

View file

@ -1,7 +1,7 @@
History Substring Search History Substring Search
======================== ========================
Integrates [zsh-history-substring-search][1] into Oh My Zsh, which implements Integrates [zsh-history-substring-search][1] into Prezto, which implements
the [Fish shell][2]'s history search feature, where the user can type in any the [Fish shell][2]'s history search feature, where the user can type in any
part of a previously entered command and press up and down to cycle through part of a previously entered command and press up and down to cycle through
matching commands. matching commands.

View file

@ -1,5 +1,5 @@
# #
# Integrates history-substring-search into Oh My Zsh. # Integrates history-substring-search into Prezto.
# #
# Authors: # Authors:
# Suraj N. Kurapati <sunaku@gmail.com> # Suraj N. Kurapati <sunaku@gmail.com>

View file

@ -1,7 +1,7 @@
Syntax Highlighting Syntax Highlighting
=================== ===================
Integrates [zsh-syntax-highlighting][1] into Oh My Zsh. Integrates [zsh-syntax-highlighting][1] into Prezto.
This module should be loaded *second to last*, where last is the *prompt* This module should be loaded *second to last*, where last is the *prompt*
module, unless used in conjuncture with the *history-substring-search* module module, unless used in conjuncture with the *history-substring-search* module

View file

@ -1,5 +1,5 @@
# #
# Integrates zsh-syntax-highlighting into Oh My Zsh. # Integrates zsh-syntax-highlighting into Prezto.
# #
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>

View file

@ -45,7 +45,7 @@ zprofile and zlogin are not meant to be used concurrently but can be done so.
This file is sourced by interactive shells. It should define aliases, This file is sourced by interactive shells. It should define aliases,
functions, shell options, and key bindings. functions, shell options, and key bindings.
This is the main Oh My Zsh configuration file. This is the main Prezto configuration file.
### zlogin ### zlogin

View file

@ -5,8 +5,8 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# #
# Set the path to Oh My Zsh. # Set the path to Prezto.
export OMZ="$HOME/.oh-my-zsh" export PREZTO="$HOME/.prezto"
# Paths # Paths
typeset -gU cdpath fpath mailpath manpath path typeset -gU cdpath fpath mailpath manpath path

View file

@ -1,5 +1,5 @@
# #
# Sets Oh My Zsh options. # Sets Prezto options.
# #
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
@ -26,7 +26,7 @@ zstyle ':omz:module:terminal' auto-title 'yes'
# Set the Zsh functions to load (man zshcontrib). # Set the Zsh functions to load (man zshcontrib).
# zstyle ':omz:load' zfunction 'zargs' 'zmv' # zstyle ':omz:load' zfunction 'zargs' 'zmv'
# Set the Oh My Zsh modules to load (browse modules). # Set the Prezto modules to load (browse modules).
# The order matters. # The order matters.
zstyle ':omz:load' omodule \ zstyle ':omz:load' omodule \
'environment' \ 'environment' \
@ -44,8 +44,8 @@ zstyle ':omz:load' omodule \
# Auto set to 'off' on dumb terminals. # Auto set to 'off' on dumb terminals.
zstyle ':omz:module:prompt' theme 'sorin' zstyle ':omz:module:prompt' theme 'sorin'
# This will make you shout: OH MY ZSHELL! # Hey Prezto!
source "$OMZ/init.zsh" source "$PREZTO/init.zsh"
# Customize to your needs... # Customize to your needs...