| 
								
							 | 
							
								#!/usr/bin/env sh
							 | 
						
						
						
							| 
								
							 | 
							
								
							 | 
						
						
						
							| 
								
							 | 
							
								# This will either attach to the "notes" session, or start a new one with
							 | 
						
						
						
							| 
								
							 | 
							
								# that name.  It's used by a named scratchpad in my xmonad config.
							 | 
						
						
						
							| 
								
							 | 
							
								
							 | 
						
						
						
							| 
								
							 | 
							
								# The -2 here forces tmux to do 256-color mode.  Probably a bad idea if
							 | 
						
						
						
							| 
								
							 | 
							
								# I'm in some primitive terminal, but for this use case, I really don't
							 | 
						
						
						
							| 
								
							 | 
							
								# care.  I couldn't get it to behave otherwise.  May be as simple as
							 | 
						
						
						
							| 
								
							 | 
							
								# what it's setting $TERM to, maybe I was missing something else.
							 | 
						
						
						
							| 
								
							 | 
							
								
							 | 
						
						
						
							| 
								
							 | 
							
								# See: https://unix.stackexchange.com/questions/1045/getting-256-colors-to-work-in-tmux
							 | 
						
						
						
							| 
								
							 | 
							
								
							 | 
						
						
						
							| 
								
							 | 
							
								cd ~/notes
							 | 
						
						
						
							| 
								
							 | 
							
								tmux -2 new-session -A -s notes
							 |