mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added missing parenthesis to a few functions.
This commit is contained in:
parent
d1d82c2189
commit
f000d7e39f
2 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ function autoloadable() {
|
|||
}
|
||||
|
||||
# Checks boolean variable for "true" (case insensitive "1", "y", "yes", "t", "true", "o", and "on").
|
||||
function check-bool {
|
||||
function check-bool() {
|
||||
[[ -n "$1" && "$1" == (1|[Yy]([Ee][Ss]|)|[Tt]([Rr][Uu][Ee]|)|[Oo]([Nn]|)) ]]
|
||||
}
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ TRAP_SIGNALS=(
|
|||
)
|
||||
|
||||
# Adds a function to a list to be called when a trap is triggered.
|
||||
function add-zsh-trap {
|
||||
function add-zsh-trap() {
|
||||
if (( $# < 2 )); then
|
||||
print "Usage: $0 type function"
|
||||
return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue