Browse Source

Ensure we use the same function definition syntax everywhere

master
Kaleb Elwert 7 years ago
parent
commit
a70bce3ea6
  1. 2
      CONTRIBUTING.md
  2. 6
      init.zsh

2
CONTRIBUTING.md

@ -30,7 +30,7 @@ there are a number of additional things to keep in mind. @@ -30,7 +30,7 @@ there are a number of additional things to keep in mind.
- Local variables should be used whenever possible.
- Prefer `zstyle` over environment variables for configuration.
- Use the `my_func()` syntax for defining functions.
- Use the function keyword to define functions.
- The 80 character hard limit can be waved for readability.
#### Using an Alternative zprezto Directory

6
init.zsh

@ -20,7 +20,8 @@ unset min_zsh_version @@ -20,7 +20,8 @@ unset min_zsh_version
# zprezto convenience updater
# The function is surrounded by ( ) instead of { } so it starts in a subshell
# and won't affect the environment of the calling shell
function zprezto-update () (
function zprezto-update {
(
function cannot-fast-forward {
local STATUS="$1"
[[ -n "${STATUS}" ]] && printf "%s\n" "${STATUS}"
@ -62,7 +63,8 @@ function zprezto-update () ( @@ -62,7 +63,8 @@ function zprezto-update () (
return 1
fi
return 1
)
)
}
#
# Module Loader
#

Loading…
Cancel
Save