tabminal 2.0.13 → 2.0.15

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.
@@ -15,7 +15,16 @@ _tabminal_bash_preexec() {
15
15
  if [[ "${BASH_COMMAND:-}" == "${PROMPT_COMMAND:-}" ]]; then
16
16
  return
17
17
  fi
18
+ if [[ -n "${_tabminal_command_running:-}" ]]; then
19
+ return
20
+ fi
21
+ _tabminal_command_running=1
18
22
  _tabminal_last_command="$BASH_COMMAND"
23
+ local command_b64
24
+ command_b64=$(
25
+ echo -n "$_tabminal_last_command" | base64 | tr -d '\n'
26
+ )
27
+ printf '\x1b]1337;CommandStartB64=%s\x07' "$command_b64"
19
28
  }
20
29
 
21
30
  _tabminal_bash_postexec() {
@@ -33,6 +42,7 @@ _tabminal_bash_postexec() {
33
42
 
34
43
  _tabminal_apply_prompt_marker() {
35
44
  local marker=$'\[\e]1337;TabminalPrompt\a\]'
45
+ _tabminal_command_running=''
36
46
  if [[ "${PS1:-}" != *'TabminalPrompt'* ]]; then
37
47
  PS1="${PS1}${marker}"
38
48
  fi