mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
[Fix #41] Do not truncate the commit id
This commit is contained in:
parent
514aaa014b
commit
cdb95f810f
3 changed files with 12 additions and 8 deletions
|
|
@ -15,6 +15,15 @@ function is-true() {
|
|||
[[ -n "$1" && "$1" == (1|[Yy]([Ee][Ss]|)|[Tt]([Rr][Uu][Ee]|)|[Oo]([Nn]|)) ]]
|
||||
}
|
||||
|
||||
# Prints the first non-empty string in the arguments array.
|
||||
function coalesce() {
|
||||
for arg in "$argv[@]"; do
|
||||
print "$arg"
|
||||
return 0
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
# Trap signals were generated with 'kill -l'.
|
||||
# DEBUG, EXIT, and ZERR are Zsh signals.
|
||||
TRAP_SIGNALS=(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue