1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 09:51:41 +00:00

[Fix #60] Do not use parentheses in function names

This commit is contained in:
Sorin Ionescu
2012-03-23 14:57:51 -04:00
parent a3b92bb053
commit 6a9a4ea8d6
22 changed files with 66 additions and 67 deletions

View File

@ -13,11 +13,11 @@ function +vi-git-status() {
fi
}
function prompt_minimal_precmd () {
function prompt_minimal_precmd {
vcs_info
}
function prompt_minimal_setup() {
function prompt_minimal_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)

View File

@ -16,11 +16,11 @@
# - Shows if logged in as root or not.
#
function prompt_nicoulaj_precmd() {
function prompt_nicoulaj_precmd {
vcs_info
}
function prompt_nicoulaj_setup() {
function prompt_nicoulaj_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)

View File

@ -8,7 +8,7 @@
# http://i.imgur.com/aipDQ.png
#
function prompt_sorin_precmd () {
function prompt_sorin_precmd {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
@ -17,7 +17,7 @@ function prompt_sorin_precmd () {
fi
}
function prompt_sorin_setup() {
function prompt_sorin_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)

View File

@ -9,13 +9,13 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
function virtualenv_info() {
function virtualenv_info {
if [[ -n "$VIRTUAL_ENV" ]]; then
print "(${VIRTUAL_ENV:t}) "
fi
}
function prompt_steeef_precmd() {
function prompt_steeef_precmd {
if [[ -n "$__PROMPT_STEEEF_VCS_UPDATE" ]] ; then
# Check for untracked files or updated submodules since vcs_info doesn't.
if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
@ -31,7 +31,7 @@ function prompt_steeef_precmd() {
fi
}
function prompt_steeef_preexec() {
function prompt_steeef_preexec {
case "$(history $HISTCMD)" in
(*git*)
__PROMPT_STEEEF_VCS_UPDATE=1
@ -42,11 +42,11 @@ function prompt_steeef_preexec() {
esac
}
function prompt_steeef_chpwd() {
function prompt_steeef_chpwd {
__PROMPT_STEEEF_VCS_UPDATE=1
}
function prompt_steeef_setup() {
function prompt_steeef_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)