You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone,
I'm new to the "Termius World", however, I noticed that when accessing some hosts with it, sometimes it sets a lot of variables, which would not be desirable for some of our customers.
Can you clarify on why it does that? Just out of curiosity and if there's a way to disable this behavior.
Thanks in advance
History output below:
499 if [ "$_termius_integration_installed" = "" ]; then _termius_integration_installed="yes"; builtin printf "\e]4545;A\a"; _termius_encode() { builtin echo -n "$1" | command base64; }; _termius_get_trap() { builtin local -a terms; builtin eval "terms=( ( t r a p − p " {1:-DEBUG}") )"; builtin printf '%s' "${terms[2]:-}"; }; if [[ "$HISTCONTROL" =~ .(erasedups|ignoreboth|ignoredups). ]]; then _termius_history_verify=0; else _termius_history_verify=1; fi; _termius_original_PS1="$PS1"; _termius_custom_PS1=""; _termius_in_command_execution="1"; _termius_current_command=""; _termius_current_cwd() { builtin printf "\e]4545;SetCwd;%s\a" "$(_termius_encode "$PWD")"; }; _termius_prompt_begins() { builtin printf "\e]4545;ShellPromptBegins\a"; }; _termius_prompt_ends() { builtin printf "\e]4545;ShellPromptEnds\a"; }; _termius_wrap_prompt() { builtin printf "[$(_termius_prompt_begins)]%s[$(_termius_prompt_ends)]" "$1"; }; _termius_command_started() { builtin printf "\e]4545;CommandStarted;%s\a" "$(_termius_encode "$1")"; }; _termius_command_exited() { builtin printf "\e]4545;CommandExited;%s\a" "$1"; }; _termius_update_prompt() { if [ "$_termius_in_command_execution" = "1" ]; then if [[ "$_termius_custom_PS1" == "" || "$_termius_custom_PS1" != "$PS1" ]]; then _termius_original_PS1=$PS1; _termius_custom_PS1=$(_termius_wrap_prompt "$_termius_original_PS1"); PS1="$_termius_custom_PS1"; fi; _termius_in_command_execution="0"; fi; }; _termius_precmd() { if [ "$_termius_current_command" != "" ]; then _termius_command_exited "$_termius_status"; fi; _termius_current_cwd; _termius_current_command=""; _termius_update_prompt; }; _termius_preexec() { if [[ ! "$BASH_COMMAND" =~ ^_termius_prompt* ]]; then if [ "$_termius_history_verify" = "1" ]; then _termius_current_command="$(builtin history 1 | sed 's/ [0-9] *//')"; else _termius_current_command=$BASH_COMMAND; fi; else _termius_current_command=""; fi; if [ "$_termius_current_command" != "" ]; then _termius_command_started "$_termius_current_command"; fi; }; if [[ -n "${bash_preexec_imported:-}" ]]; then _termius_preexec_only() { if [ "$_termius_in_command_execution" = "0" ]; then _termius_in_command_execution="1"; _termius_preexec; fi; }; precmd_functions+=(_termius_prompt_cmd); preexec_functions+=(_termius_preexec_only); else _termius_dbg_trap="$(_termius_get_trap DEBUG)"; if [[ -z "$_termius_dbg_trap" ]]; then _termius_preexec_only() { if [ "$_termius_in_command_execution" = "0" ]; then _termius_in_command_execution="1"; _termius_preexec; fi; }; trap 'termius_preexec_only "$"' DEBUG; elif [[ "$_termius_dbg_trap" != 'termius_preexec "$"' && "$_termius_dbg_trap" != 'termius_preexec_all "$"' ]]; then _termius_preexec_all() { if [ "$_termius_in_command_execution" = "0" ]; then _termius_in_command_execution="1"; builtin eval "${_termius_dbg_trap}"; _termius_preexec; fi; }; trap 'termius_preexec_all "$"' DEBUG; fi; fi; _termius_update_prompt; _termius_restore_exit_code() { return "$1"; }; _termius_prompt_cmd_original() { _termius_status="$?"; _termius_restore_exit_code "${_termius_status}"; for cmd in "${_termius_original_prompt_command[@]}"; do eval "${cmd:-}"; done; _termius_precmd; }; _termius_prompt_cmd() { _termius_status="$?"; _termius_precmd; }; _termius_original_prompt_command=$PROMPT_COMMAND; if [[ -z "${bash_preexec_imported:-}" ]]; then if [[ -n "$_termius_original_prompt_command" && "$_termius_original_prompt_command" != "_termius_prompt_cmd" ]]; then PROMPT_COMMAND=_termius_prompt_cmd_original; else PROMPT_COMMAND=_termius_prompt_cmd; fi; fi; builtin printf "\e]4545;B\a"; fi
The text was updated successfully, but these errors were encountered:
Hello everyone,
I'm new to the "Termius World", however, I noticed that when accessing some hosts with it, sometimes it sets a lot of variables, which would not be desirable for some of our customers.
Can you clarify on why it does that? Just out of curiosity and if there's a way to disable this behavior.
Thanks in advance
History output below:
499 if [ "$_termius_integration_installed" = "" ]; then _termius_integration_installed="yes"; builtin printf "\e]4545;A\a"; _termius_encode() { builtin echo -n "$1" | command base64; }; _termius_get_trap() { builtin local -a terms; builtin eval "terms=( ( t r a p − p " {1:-DEBUG}") )"; builtin printf '%s' "${terms[2]:-}"; }; if [[ "$HISTCONTROL" =~ .(erasedups|ignoreboth|ignoredups). ]]; then _termius_history_verify=0; else _termius_history_verify=1; fi; _termius_original_PS1="$PS1"; _termius_custom_PS1=""; _termius_in_command_execution="1"; _termius_current_command=""; _termius_current_cwd() { builtin printf "\e]4545;SetCwd;%s\a" "$(_termius_encode "$PWD")"; }; _termius_prompt_begins() { builtin printf "\e]4545;ShellPromptBegins\a"; }; _termius_prompt_ends() { builtin printf "\e]4545;ShellPromptEnds\a"; }; _termius_wrap_prompt() { builtin printf "[$(_termius_prompt_begins)]%s[$(_termius_prompt_ends)]" "$1"; }; _termius_command_started() { builtin printf "\e]4545;CommandStarted;%s\a" "$(_termius_encode "$1")"; }; _termius_command_exited() { builtin printf "\e]4545;CommandExited;%s\a" "$1"; }; _termius_update_prompt() { if [ "$_termius_in_command_execution" = "1" ]; then if [[ "$_termius_custom_PS1" == "" || "$_termius_custom_PS1" != "$PS1" ]]; then _termius_original_PS1=$PS1; _termius_custom_PS1=$(_termius_wrap_prompt "$_termius_original_PS1"); PS1="$_termius_custom_PS1"; fi; _termius_in_command_execution="0"; fi; }; _termius_precmd() { if [ "$_termius_current_command" != "" ]; then _termius_command_exited "$_termius_status"; fi; _termius_current_cwd; _termius_current_command=""; _termius_update_prompt; }; _termius_preexec() { if [[ ! "$BASH_COMMAND" =~ ^_termius_prompt* ]]; then if [ "$_termius_history_verify" = "1" ]; then _termius_current_command="$(builtin history 1 | sed 's/ [0-9] *//')"; else _termius_current_command=$BASH_COMMAND; fi; else _termius_current_command=""; fi; if [ "$_termius_current_command" != "" ]; then _termius_command_started "$_termius_current_command"; fi; }; if [[ -n "${bash_preexec_imported:-}" ]]; then _termius_preexec_only() { if [ "$_termius_in_command_execution" = "0" ]; then _termius_in_command_execution="1"; _termius_preexec; fi; }; precmd_functions+=(_termius_prompt_cmd); preexec_functions+=(_termius_preexec_only); else _termius_dbg_trap="$(_termius_get_trap DEBUG)"; if [[ -z "$_termius_dbg_trap" ]]; then _termius_preexec_only() { if [ "$_termius_in_command_execution" = "0" ]; then _termius_in_command_execution="1"; _termius_preexec; fi; }; trap 'termius_preexec_only "$"' DEBUG; elif [[ "$_termius_dbg_trap" != 'termius_preexec "$"' && "$_termius_dbg_trap" != 'termius_preexec_all "$"' ]]; then _termius_preexec_all() { if [ "$_termius_in_command_execution" = "0" ]; then _termius_in_command_execution="1"; builtin eval "${_termius_dbg_trap}"; _termius_preexec; fi; }; trap 'termius_preexec_all "$"' DEBUG; fi; fi; _termius_update_prompt; _termius_restore_exit_code() { return "$1"; }; _termius_prompt_cmd_original() { _termius_status="$?"; _termius_restore_exit_code "${_termius_status}"; for cmd in "${_termius_original_prompt_command[@]}"; do eval "${cmd:-}"; done; _termius_precmd; }; _termius_prompt_cmd() { _termius_status="$?"; _termius_precmd; }; _termius_original_prompt_command=$PROMPT_COMMAND; if [[ -z "${bash_preexec_imported:-}" ]]; then if [[ -n "$_termius_original_prompt_command" && "$_termius_original_prompt_command" != "_termius_prompt_cmd" ]]; then PROMPT_COMMAND=_termius_prompt_cmd_original; else PROMPT_COMMAND=_termius_prompt_cmd; fi; fi; builtin printf "\e]4545;B\a"; fi
The text was updated successfully, but these errors were encountered: