mirror of
				https://github.com/tmux-plugins/tpm.git
				synced 2025-11-04 08:36:05 +00:00 
			
		
		
		
	Helper functions refactoring
This commit is contained in:
		
							
								
								
									
										7
									
								
								scripts/helpers/shell_echo_functions.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								scripts/helpers/shell_echo_functions.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
echo_ok() {
 | 
			
		||||
	echo "$*"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
echo_err() {
 | 
			
		||||
	fail_helper "$*"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										19
									
								
								scripts/helpers/tmux_echo_functions.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/helpers/tmux_echo_functions.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
tmux_echo() {
 | 
			
		||||
	local message="$1"
 | 
			
		||||
	tmux run-shell "echo '$message'"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
echo_ok() {
 | 
			
		||||
	tmux_echo "$*"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
echo_err() {
 | 
			
		||||
	tmux_echo "$*"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
end_message() {
 | 
			
		||||
	tmux_echo ""
 | 
			
		||||
	tmux_echo "TMUX environment reloaded."
 | 
			
		||||
	tmux_echo ""
 | 
			
		||||
	tmux_echo "Done, press ENTER to continue."
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								scripts/helpers/tmux_utils.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								scripts/helpers/tmux_utils.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
reload_tmux_environment() {
 | 
			
		||||
	tmux source-file ~/.tmux.conf >/dev/null 2>&1
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user