mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	New command, if-shell (alias if). Executes the tmux command in the second
argument if the shell command in the first succeeds, for example:
       if "[ -e ~/.tmux.conf.alt ]" "source .tmux.conf.alt"
Written by Tiago Cunha, many thanks.
			
			
This commit is contained in:
		
							
								
								
									
										10
									
								
								tmux.1
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								tmux.1
									
									
									
									
									
								
							@@ -711,6 +711,16 @@ This command only works from inside
 | 
			
		||||
.D1 (alias: Ic has )
 | 
			
		||||
Report an error and exit with 1 if the specified session does not exist.
 | 
			
		||||
If it does exist, exit with 0.
 | 
			
		||||
.It Xo Ic if-shell
 | 
			
		||||
.Ar shell-command
 | 
			
		||||
.Ar command
 | 
			
		||||
.Xc
 | 
			
		||||
.D1 (alias: Ic if )
 | 
			
		||||
Execute
 | 
			
		||||
.Ar command
 | 
			
		||||
if
 | 
			
		||||
.Ar shell-command
 | 
			
		||||
returns success.
 | 
			
		||||
.It Xo Ic kill-pane
 | 
			
		||||
.Op Fl p Ar pane-index
 | 
			
		||||
.Op Fl t Ar target-window
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user