forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge https://github.com/sorin-ionescu/prezto into caleb
* https://github.com/sorin-ionescu/prezto: Add Emacs module [Fix sorin-ionescu#396] Remove the osx trash function [Fix sorin-ionescu#398] Manually set locale [Fix sorin-ionescu#351] Set empty keys to an invalid UTF-8 sequence Add support for nvm Use $GNUPGHOME in GPG agent startup [Fix sorin-ionescu#381] Remove the path_helper workaround [Fix sorin-ionescu#385] Do not set $INFOPATH [Fix sorin-ionescu#383] Do not set $MANPATH Fix lesspipe.sh detection in custom PATH [Fix sorin-ionescu#366] Distinct position with red Export $MANPATH and $INFOPATH [Fix sorin-ionescu#349] Display diff when committing [Fix sorin-ionescu#360] Set alias giR to reset the index interactively [Fix sorin-ionescu#357] Set alias gcO to check out hunks interactively [Fix sorin-ionescu#355] Do not set launchd environment variables
- Loading branch information
Showing
19 changed files
with
138 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Emacs | ||
===== | ||
|
||
Enables Emacs dependency management. | ||
|
||
Dependency management | ||
--------------------- | ||
|
||
[Carton][1] installs and manages Emacs packages for Emacs package development | ||
and Emacs configuration. | ||
|
||
This module prepends the Carton directory to the path variable to enable the | ||
execution of `carton`. | ||
|
||
Aliases | ||
------- | ||
|
||
### Carton | ||
|
||
- `cai` installs dependencies. | ||
- `cau` updates dependencies. | ||
- `caI` initializes the current directory for dependency management. | ||
- `cae` executes a command which correct dependencies. | ||
|
||
Authors | ||
------- | ||
|
||
*The authors of this module should be contacted via the [issue tracker][2].* | ||
|
||
- [Sebastian Wiesner](https://github.com/lunaryorn) | ||
|
||
[1]: https://github.com/rejeep/carton | ||
[2]: https://github.com/sorin-ionescu/prezto/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Configures Emacs dependency management. | ||
# | ||
# Authors: Sebastian Wiesner <[email protected]> | ||
# | ||
|
||
# Enable Carton | ||
if [[ -d "$HOME/.carton" ]]; then | ||
path=($HOME/.carton/bin $path) | ||
|
||
alias cai='carton install' | ||
alias cau='carton update' | ||
alias caI='carton init' | ||
alias cae='carton exec' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,16 @@ | |
# Authors: | ||
# Florian Walch <[email protected]> | ||
# Sorin Ionescu <[email protected]> | ||
# neersighted <[email protected]> | ||
# | ||
|
||
# Return if requirements are not found. | ||
if (( ! $+commands[gpg-agent] )); then | ||
return 1 | ||
fi | ||
|
||
_gpg_env="$HOME/.gnupg/gpg-agent.env" | ||
# Make sure to use the $GNUPGHOME first. | ||
_gpg_env="${GNUPGHOME:-$HOME/.gnupg}/gpg-agent.env" | ||
|
||
function _gpg-agent-start { | ||
local ssh_support | ||
|
@@ -20,7 +22,8 @@ function _gpg-agent-start { | |
|| ssh_support='' | ||
|
||
gpg-agent \ | ||
--daemon ${ssh_support:+'--enable-ssh-support'} | ||
--daemon \ | ||
${ssh_support:+'--enable-ssh-support'} \ | ||
--write-env-file "${_gpg_env}" > /dev/null | ||
|
||
chmod 600 "${_gpg_env}" | ||
|
@@ -41,4 +44,3 @@ export GPG_AGENT_INFO | |
export SSH_AUTH_SOCK | ||
export SSH_AGENT_PID | ||
export GPG_TTY="$(tty)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,46 @@ | ||
Node.js | ||
======= | ||
|
||
Provides utility functions for [Node.js][1] and loads [npm][2] completion. | ||
Provides utility functions for [Node.js][1], loads the Node Version Manager, and | ||
enables [npm][2] completion. | ||
|
||
nvm | ||
--- | ||
|
||
[nvm][5] allows for managing multiple, isolated Node.js installations in the | ||
home directory. | ||
|
||
Functions | ||
--------- | ||
|
||
- `node-doc` opens the Node.js online [API documentation][3] in the default | ||
browser. | ||
- `node-info` exposes information about the Node.js environment via the | ||
`$node_info` associative array. | ||
|
||
Theming | ||
------- | ||
|
||
To display the version number of the current Node.js version, define the | ||
following style inside the `prompt_name_setup` function. | ||
|
||
# %v - Node.js version. | ||
zstyle ':prezto:module:node:info:version' format 'version:%v' | ||
|
||
Then add `$node_info[version]` to either `$PROMPT` or `$RPROMPT` and call | ||
`node-info` in `prompt_name_preexec` hook function. | ||
|
||
Authors | ||
------- | ||
|
||
*The authors of this module should be contacted via the [issue tracker][4].* | ||
|
||
- [Sorin Ionescu](https://github.com/sorin-ionescu) | ||
- [Zeh Rizzatti](https://github.com/zehrizzatti) | ||
|
||
[1]: http://nodejs.org | ||
[2]: http://npmjs.org | ||
[3]: http://nodejs.org/api | ||
[4]: https://github.com/sorin-ionescu/prezto/issues | ||
[5]: https://github.com/creationix/nvm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Exposes information about the Node.js environment via the $node_info | ||
# associative array. | ||
# | ||
# Authors: | ||
# Zeh Rizzatti <[email protected]> | ||
# | ||
|
||
local version | ||
local version_format | ||
local version_formatted | ||
|
||
unset node_info | ||
typeset -gA node_info | ||
|
||
if (( $+functions[nvm_version] )); then | ||
version="${$(nvm_version)#v}" | ||
fi | ||
|
||
if [[ -n "$version" ]]; then | ||
zstyle -s ':prezto:module:node:info:version' format 'version_format' | ||
zformat -f version_formatted "$version_format" "v:$version" | ||
node_info[version]="$version_formatted" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
# | ||
# Completes npm. | ||
# Loads the Node Version Manager and enables npm completion. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
# Zeh Rizzatti <[email protected]> | ||
# | ||
|
||
# Load NVM into the shell session. | ||
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then | ||
source "$HOME/.nvm/nvm.sh" | ||
fi | ||
|
||
# Return if requirements are not found. | ||
if (( ! $+commands[node] )); then | ||
return 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.