Skip to content

Commit

Permalink
feat(job stack): ignore session-scope activity
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Apr 7, 2020
1 parent 3611d33 commit 9cd9616
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zsh-abbr.zsh
Expand Up @@ -597,11 +597,6 @@ _zsh_abbr() {
man abbr 2>/dev/null || cat ${ZSH_ABBR_SOURCE_PATH}/man/abbr.txt | less -F
}

if ! (( ZSH_ABBR_INITIALIZING )); then
job=$(_zsh_abbr_job_name)
_zsh_abbr_job_push $job "syncing user abbreviations"
fi

for opt in "$@"; do
if (( should_exit )); then
should_exit=0
Expand Down Expand Up @@ -693,6 +688,11 @@ _zsh_abbr() {
if ! (( should_exit )); then
shift $number_opts

if ! (( ZSH_ABBR_INITIALIZING )) && [[ $scope != 'session' ]]; then
job=$(_zsh_abbr_job_name)
_zsh_abbr_job_push $job $action
fi

if [ $action ]; then
_zsh_abbr:$action $@
elif [[ $# > 0 ]]; then
Expand Down

0 comments on commit 9cd9616

Please sign in to comment.