Added readme in spanish and englis for instructions

what happened

[ticket: X]:
This commit is contained in:
Benjamin Martinez 2011-04-12 17:55:09 -07:00
commit ac27979e71
2 changed files with 91 additions and 0 deletions

45
plugins/mercurial/LEEME Normal file
View file

@ -0,0 +1,45 @@
Este plugin sirve para tener la información de tu repositorio mercurial (hg) en tu prompt.
Para usarlo tienes que agregarlo a tu .zshrc
Ejemplo:
plugins=( ...mercurial...)
Puedes personalizar la forma en que se ve
Las variables a personalizar son:
Para el nombre de la rama:
ZSH_THEME_HG_PROMPT_PREFIX Esta muestra lo que se vera antes de la nombre de la rama
ZSH_THEME_HG_PROMPT_SUFFIX Esta muestra lo que se vera despues de la rama
ZSH_THEME_HG_PROMPT_DIRTY Esta muestra lo que se vera cuando el repositorio este súcio
ZSH_THEME_HG_PROMPT_CLEAN Esta muestra lo que se vera cuando el repositorio este limpio
Para el estatus del repositorio:
ZSH_THEME_HG_PROMPT_ADDED Esta muestra lo que se vera cuando se agregue un archivo
ZSH_THEME_HG_PROMPT_MODIFIED Esta muestra lo que se vera cuando se modifique un archivo
ZSH_THEME_HG_PROMPT_DELETED Esta muestra lo que se vera cuando se borre un archivo
ZSH_THEME_HG_PROMPT_MISSING Esta muestra lo que se vera cuando se falte un archivo (borrado por un comando externo a hg)
ZSH_THEME_HG_PROMPT_UNMERGED Esta muestra lo que se vera cuando se combine un archivo
ZSH_THEME_HG_PROMPT_UNTRACKED Esta muestra lo que se vera cuando no sea seguido un archivo
Para los bookmarks:
ZSH_THEME_HG_PROMPT_PREFIX Esto es lo que se vera antes del nombre del bookmark
ZSH_THEME_HG_PROMPT_SUFFIX Esto es lo que se vera despues del nombre del bookmark
Para configurarlas agregalas a tu tema
Configuración de ejemplo:
ZSH_THEME_HG_PROMPT_PREFIX="[%F{yellow}"
ZSH_THEME_HG_PROMPT_SUFFIX="%f]"
ZSH_THEME_HG_PROMPT_DIRTY=" %F{red}*%f"
ZSH_THEME_HG_PROMPT_CLEAN=" %F{green}°%f"
ZSH_THEME_HG_PROMPT_ADDED="%F{green}+%f"
ZSH_THEME_HG_PROMPT_MODIFIED="%F{blue}*%f"
ZSH_THEME_HG_PROMPT_DELETED="%F{red}x%f"
ZSH_THEME_HG_PROMPT_MISSING="%F{magenta}!%f"
ZSH_THEME_HG_PROMPT_UNMERGED="%F{yellow}═%f"
ZSH_THEME_HG_PROMPT_UNTRACKED="%F{cyan}?%f"

46
plugins/mercurial/README Normal file
View file

@ -0,0 +1,46 @@
This plugin is for having info from your mercurial (hg) repo in your prompt
you can enable it by addin "mercurial" (without quotes ) to your plugins in
your .zshrc :
plugins=( ...mercurial...)
You can also costumize the way it looks.
The custom variables are :
For branch name:
ZSH_THEME_HG_PROMPT_PREFIX This sets what will be shown before the branch name
ZSH_THEME_HG_PROMPT_SUFFIX This sets what will be shown after the branch name
ZSH_THEME_HG_PROMPT_DIRTY This sets what will be shown when the repo is dirty
ZSH_THEME_HG_PROMPT_CLEAN This sets what will be shown when the repo is clean
For status of repo:
ZSH_THEME_HG_PROMPT_ADDED This sets what will be shown when a file is added to the repo
ZSH_THEME_HG_PROMPT_MODIFIED This sets what will be shown when a file is modified
ZSH_THEME_HG_PROMPT_DELETED This sets what will be shown when a file is deleted
ZSH_THEME_HG_PROMPT_MISSING This sets what will be shown when a file is missing (deleted by non-hg command, but still tracked)
ZSH_THEME_HG_PROMPT_UNMERGED This sets what will be shown when a file is not merged
ZSH_THEME_HG_PROMPT_UNTRACKED This sets what will be shown when a file is not tracked
For bookmarks:
ZSH_THEME_HG_PROMPT_PREFIX This sets what will be shown before the bookmark name
ZSH_THEME_HG_PROMPT_SUFFIX This sets what will be shown after the bookmark name
To configure add this vars in your theme
Example config:
ZSH_THEME_HG_PROMPT_PREFIX="[%F{yellow}"
ZSH_THEME_HG_PROMPT_SUFFIX="%f]"
ZSH_THEME_HG_PROMPT_DIRTY=" %F{red}*%f"
ZSH_THEME_HG_PROMPT_CLEAN=" %F{green}°%f"
ZSH_THEME_HG_PROMPT_ADDED="%F{green}+%f"
ZSH_THEME_HG_PROMPT_MODIFIED="%F{blue}*%f"
ZSH_THEME_HG_PROMPT_DELETED="%F{red}x%f"
ZSH_THEME_HG_PROMPT_MISSING="%F{magenta}!%f"
ZSH_THEME_HG_PROMPT_UNMERGED="%F{yellow}═%f"
ZSH_THEME_HG_PROMPT_UNTRACKED="%F{cyan}?%f"