1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 19:31:43 +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

@ -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)