mirror of
				https://github.com/tmux-plugins/tpm.git
				synced 2025-11-04 08:36:05 +00:00 
			
		
		
		
	Tmux echo function rename
This commit is contained in:
		@@ -14,22 +14,22 @@ source "$SCRIPTS_DIR/shared_functions.sh"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
display_plugin_update_list() {
 | 
					display_plugin_update_list() {
 | 
				
			||||||
	local plugins="$(shared_get_tpm_plugins_list)"
 | 
						local plugins="$(shared_get_tpm_plugins_list)"
 | 
				
			||||||
	echo_message "Installed plugins:"
 | 
						tmux_echo "Installed plugins:"
 | 
				
			||||||
	echo_message ""
 | 
						tmux_echo ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for plugin in $plugins; do
 | 
						for plugin in $plugins; do
 | 
				
			||||||
		# displaying only installed plugins
 | 
							# displaying only installed plugins
 | 
				
			||||||
		if plugin_already_installed "$plugin"; then
 | 
							if plugin_already_installed "$plugin"; then
 | 
				
			||||||
			local plugin_name="$(shared_plugin_name "$plugin")"
 | 
								local plugin_name="$(shared_plugin_name "$plugin")"
 | 
				
			||||||
			echo_message "  $plugin_name"
 | 
								tmux_echo "  $plugin_name"
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
	done
 | 
						done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	echo_message ""
 | 
						tmux_echo ""
 | 
				
			||||||
	echo_message "Type plugin name to update it."
 | 
						tmux_echo "Type plugin name to update it."
 | 
				
			||||||
	echo_message ""
 | 
						tmux_echo ""
 | 
				
			||||||
	echo_message "- \"all\" - updates all plugins"
 | 
						tmux_echo "- \"all\" - updates all plugins"
 | 
				
			||||||
	echo_message "- ENTER - cancels"
 | 
						tmux_echo "- ENTER - cancels"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
update_plugin_prompt() {
 | 
					update_plugin_prompt() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,11 +15,11 @@ use_tmux_echo() {
 | 
				
			|||||||
if use_tmux_echo; then
 | 
					if use_tmux_echo; then
 | 
				
			||||||
	# use tmux specific echo-ing
 | 
						# use tmux specific echo-ing
 | 
				
			||||||
	echo_ok() {
 | 
						echo_ok() {
 | 
				
			||||||
		echo_message "$*"
 | 
							tmux_echo "$*"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	echo_err() {
 | 
						echo_err() {
 | 
				
			||||||
		echo_message "$*"
 | 
							tmux_echo "$*"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	echo_ok() {
 | 
						echo_ok() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,11 +15,11 @@ use_tmux_echo() {
 | 
				
			|||||||
if use_tmux_echo; then
 | 
					if use_tmux_echo; then
 | 
				
			||||||
	# use tmux specific echo-ing
 | 
						# use tmux specific echo-ing
 | 
				
			||||||
	echo_ok() {
 | 
						echo_ok() {
 | 
				
			||||||
		echo_message "$*"
 | 
							tmux_echo "$*"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	echo_err() {
 | 
						echo_err() {
 | 
				
			||||||
		echo_message "$*"
 | 
							tmux_echo "$*"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	echo_ok() {
 | 
						echo_ok() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,7 @@ shared_plugin_path() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# TMUX messaging is weird. You only get a nice clean pane if you do it with
 | 
					# TMUX messaging is weird. You only get a nice clean pane if you do it with
 | 
				
			||||||
# `run-shell` command.
 | 
					# `run-shell` command.
 | 
				
			||||||
echo_message() {
 | 
					tmux_echo() {
 | 
				
			||||||
	local message="$1"
 | 
						local message="$1"
 | 
				
			||||||
	tmux run-shell "echo '$message'"
 | 
						tmux run-shell "echo '$message'"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -63,10 +63,10 @@ plugin_already_installed() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
end_message() {
 | 
					end_message() {
 | 
				
			||||||
	echo_message ""
 | 
						tmux_echo ""
 | 
				
			||||||
	echo_message "TMUX environment reloaded."
 | 
						tmux_echo "TMUX environment reloaded."
 | 
				
			||||||
	echo_message ""
 | 
						tmux_echo ""
 | 
				
			||||||
	echo_message "Done, press ENTER to continue."
 | 
						tmux_echo "Done, press ENTER to continue."
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ensure_tpm_path_exists() {
 | 
					ensure_tpm_path_exists() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,11 +18,11 @@ use_tmux_echo() {
 | 
				
			|||||||
if use_tmux_echo; then
 | 
					if use_tmux_echo; then
 | 
				
			||||||
	# use tmux specific echo-ing
 | 
						# use tmux specific echo-ing
 | 
				
			||||||
	echo_ok() {
 | 
						echo_ok() {
 | 
				
			||||||
		echo_message "$*"
 | 
							tmux_echo "$*"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	echo_err() {
 | 
						echo_err() {
 | 
				
			||||||
		echo_message "$*"
 | 
							tmux_echo "$*"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	echo_ok() {
 | 
						echo_ok() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user