8 lines
		
	
	
		
			168 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			168 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
id=$(echo $TMUX | sed 's/.*,//g')
 | 
						|
res=$(tmux ls -F '#{session_id}:#{session_name}' | grep -e "^\$$id:")
 | 
						|
 | 
						|
[[ $res ]] || exit 1
 | 
						|
echo "${res#\$$id:}"
 |