mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-21 20:11:03 +00:00
[F] code spell checker
This commit is contained in:
parent
786f129154
commit
933f07952f
1 changed files with 4 additions and 4 deletions
|
|
@ -139,7 +139,7 @@ output_command_execute_after() {
|
||||||
|
|
||||||
# command execute before
|
# command execute before
|
||||||
# REF: http://zsh.sourceforge.net/Doc/Release/Functions.html
|
# REF: http://zsh.sourceforge.net/Doc/Release/Functions.html
|
||||||
preexec() {
|
preexec() { # cspell:disable-line
|
||||||
COMMAND_TIME_BEGIN="$(current_time_millis)";
|
COMMAND_TIME_BEGIN="$(current_time_millis)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -168,7 +168,7 @@ current_time_millis() {
|
||||||
|
|
||||||
# command execute after
|
# command execute after
|
||||||
# REF: http://zsh.sourceforge.net/Doc/Release/Functions.html
|
# REF: http://zsh.sourceforge.net/Doc/Release/Functions.html
|
||||||
precmd() {
|
precmd() { # cspell:disable-line
|
||||||
# last_cmd
|
# last_cmd
|
||||||
local last_cmd_return_code=$?;
|
local last_cmd_return_code=$?;
|
||||||
local last_cmd_result=true;
|
local last_cmd_result=true;
|
||||||
|
|
@ -191,13 +191,13 @@ precmd() {
|
||||||
|
|
||||||
|
|
||||||
# set option
|
# set option
|
||||||
setopt PROMPT_SUBST;
|
setopt PROMPT_SUBST; # cspell:disable-line
|
||||||
|
|
||||||
|
|
||||||
# timer
|
# timer
|
||||||
#REF: https://stackoverflow.com/questions/26526175/zsh-menu-completion-causes-problems-after-zle-reset-prompt
|
#REF: https://stackoverflow.com/questions/26526175/zsh-menu-completion-causes-problems-after-zle-reset-prompt
|
||||||
TMOUT=1;
|
TMOUT=1;
|
||||||
TRAPALRM() {
|
TRAPALRM() { # cspell:disable-line
|
||||||
# $(git_prompt_info) cost too much time which will raise stutters when inputting. so we need to disable it in this occurrence.
|
# $(git_prompt_info) cost too much time which will raise stutters when inputting. so we need to disable it in this occurrence.
|
||||||
# if [ "$WIDGET" != "expand-or-complete" ] && [ "$WIDGET" != "self-insert" ] && [ "$WIDGET" != "backward-delete-char" ]; then
|
# if [ "$WIDGET" != "expand-or-complete" ] && [ "$WIDGET" != "self-insert" ] && [ "$WIDGET" != "backward-delete-char" ]; then
|
||||||
# black list will not enum it completely. even some pipe broken will appear.
|
# black list will not enum it completely. even some pipe broken will appear.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue