Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
573 B

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