@kecan0406/ttheme 1.2.26 → 1.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "gate": [
5
5
  {
6
6
  "rule": "foreground",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kecan0406/ttheme",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ttheme": "bin/ttheme.js"
package/shell/ttheme.zsh CHANGED
@@ -71,7 +71,7 @@ __tt_fresh() {
71
71
 
72
72
  __tt_prompt() {
73
73
  emulate -L zsh ${=${options[xtrace]:#off}:+-o xtrace}
74
- (( TTHEME_FRONT < 0 )) || TTHEME_FRONT=0
74
+ (( TTHEME_FRONT < 0 || ! TTHEME_RAN )) || TTHEME_FRONT=0
75
75
  [[ -n $TTHEME_SSH_SPEC ]] && __tt_ssh_back
76
76
  __tt_fresh
77
77
  }
@@ -98,7 +98,7 @@ __tt_gone() {
98
98
  __tt_off_here() {
99
99
  local bg=${TTHEME_SPEC%% *}
100
100
  TTHEME_SPEC=
101
- if __tt_shown "" || [[ $1 == reload ]]; then
101
+ if __tt_shown "" $1 || [[ $1 == force ]]; then
102
102
  __tt_reload
103
103
  fi
104
104
  __tt_unshown force
@@ -1406,7 +1406,7 @@ __tt_switch() {
1406
1406
  return 0
1407
1407
  fi
1408
1408
  if [[ $1 == off ]]; then
1409
- __tt_off_here reload
1409
+ __tt_off_here force
1410
1410
  elif [[ -n $TTHEME_STARTUP ]]; then
1411
1411
  __tt_wear "${TTHEME_PALETTE[$TTHEME_STARTUP]}" "$TTHEME_STARTUP" force || __tt_reload
1412
1412
  fi