11 lines
		
	
	
		
			211 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			211 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| layout() {
 | |
|   if [[ "$1" == "" ]]; then
 | |
|     echo "usage: layout <layout> [name]"
 | |
|   else
 | |
|     tmux source-file ~/.local/share/tmux/layouts/$1
 | |
|     if [[ "$2" != "" ]]; then
 | |
|       tmux rename-window $2
 | |
|     fi
 | |
|   fi
 | |
| }
 |