1
0
Fork 0

Updated readme; removed unused code

pull/1191/head
Eduard Zintz 8 years ago
parent 7ba81d1cc2
commit f3a0c1ad00

@ -1,37 +1,40 @@
Prezto — Instantly Awesome Zsh # Prezto — Instantly Awesome Zsh
==============================
Prezto is the configuration framework for [Zsh][1]; it enriches the command line Prezto is the configuration framework for [Zsh][1]; it 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 ## Prerequisites
------------
Prezto will work with any recent release of Zsh, but the minimum required Obviously you need to install [Zsh][1]. Prezto will work with any recent release of Zsh, but the minimum required version is 4.3.17.
version is 4.3.17.
1. Launch Zsh: ## Installation
zsh ### Automated installation
2. Clone the repository: `curl -sL https://github.com/sorin-ionescu/prezto/raw/install.zsh | zsh -`
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" ### Manual installation:
3. Create a new Zsh configuration by copying the Zsh configuration files ```bash
provided: # 1. Launch Zsh:
zsh
setopt EXTENDED_GLOB # 2. Clone the repository:
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
4. Set Zsh as your default shell: # 3. Create a new Zsh configuration by copying the Zsh configuration files provided:
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
chsh -s /bin/zsh # 4. Set Zsh as your default shell:
chsh -s /bin/zsh
5. Open a new Zsh terminal window or tab. # 5. Open a new Zsh terminal window or tab.
```
### Troubleshooting ### Troubleshooting
@ -67,21 +70,21 @@ accompanying README files to learn of what is available.
![sorin theme][2] ![sorin theme][2]
Customization ## Customization
-------------
The project is managed via [Git][3]. It is highly recommended that you fork this The project is managed via [Git][3]. It is highly recommended that you fork this
project; so, that you can commit your changes and push them to [GitHub][4] to project; so, that you can commit your changes and push them to [GitHub][4] to
not lose them. If you do not know how to use Git, follow this [tutorial][5] and not lose them. If you do not know how to use Git, follow this [tutorial][5] and
bookmark this [reference][6]. bookmark this [reference][6].
Resources ## Resources
---------
The [Zsh Reference Card][7] and the [zsh-lovers][8] man page are indispensable. The [Zsh Reference Card][7] and the [zsh-lovers][8] man page are indispensable.
License ## License
-------
(The MIT License) (The MIT License)

@ -1,7 +1,6 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
setopt PIPEFAIL setopt PIPEFAIL
setopt EXTENDED_GLOB setopt EXTENDED_GLOB
# setopt XTRACE prompt_subst
## Ensure colors are available. ## Ensure colors are available.
autoload -U colors && colors autoload -U colors && colors
@ -9,22 +8,6 @@ autoload -U colors && colors
PREZTO_DIRECTORY="${ZDOTDIR:-$HOME}/.zprezto" PREZTO_DIRECTORY="${ZDOTDIR:-$HOME}/.zprezto"
PREZTO_GIT_REMOTE="https://github.com/ezintz/prezto.git" PREZTO_GIT_REMOTE="https://github.com/ezintz/prezto.git"
function is_osx {
if [[ "$OSTYPE" != darwin* ]]; then
return 1
fi
return 0
}
function is_linux {
if [[ "$OSTYPE" != linux* ]]; then
return 1
fi
return 0
}
function print_header { function print_header {
printf "\n${fg[blue]}%s${reset_color}\n" "$@" printf "\n${fg[blue]}%s${reset_color}\n" "$@"
} }
@ -63,14 +46,9 @@ function is_confirmed {
return 1 return 1
} }
function cleanup {
print_header "Cleanup"
}
TRAPINT() { TRAPINT() {
print "" print ""
print_error "Caught SIGINT, aborting." print_error "Caught SIGINT, aborting."
cleanup
return $(( 128 + $1 )) return $(( 128 + $1 ))
} }

Loading…
Cancel
Save