mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Normalize conditional expressions
This commit is contained in:
parent
0372a97a64
commit
4466d08174
1 changed files with 2 additions and 6 deletions
|
|
@ -50,13 +50,9 @@ zbell_end() {
|
|||
zbell_lastcmd_tmp="$zbell_lastcmd"
|
||||
regexp-replace zbell_lastcmd_tmp '^sudo ' ''
|
||||
|
||||
if [[ $zbell_last_timestamp == $zbell_timestamp ]]; then
|
||||
return
|
||||
fi
|
||||
[[ $zbell_last_timestamp == $zbell_timestamp ]] && return
|
||||
|
||||
if [[ $zbell_lastcmd_tmp == "" ]]; then
|
||||
return;
|
||||
fi
|
||||
[[ $zbell_lastcmd_tmp == "" ]] && return
|
||||
|
||||
zbell_last_timestamp=$zbell_timestamp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue