0

This question already has an answer here:

In the manual new-session -c option is listed as use to specify [start-directory] with no further explanation.

I have a few question to help me understand:

  1. What is start-directory used for?
  2. Does tmux itself use start-directory for anything at all like to store temp files or anything of this nature?
  3. Does tmux use start-directory value to set the current working directory (or other directory) of the program that is executed by tmux? If not, does start-directory affect the executed program at all? If so how?

marked as duplicate by EightBitTony, dr01, roaima, MelBurslan, garethTheRed May 9 '16 at 17:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The question I've linked asks a different query, but gets the same answer and explains the option in some detail. – EightBitTony May 9 '16 at 10:50
  • @EightBitTony Doesn't really answer any of my questions. Edited the Q to be more clear hopefully. – DominicM May 9 '16 at 12:54
  • The other question and answers clearly state it affects the starting directory for the new tmux session or window. So if you're in /bob and you tell tmux to start, your session starts in /home/you, but if you give it the start directory you can start in /bob. The other answer does answer your queries. – EightBitTony May 9 '16 at 13:15
  • @EightBitTony I already knew that, I mean [start-directory] is pretty self explanatory. If you think you can answer the question feel free to do so because the linked post hasn't helped me. – DominicM May 9 '16 at 14:42
  • 1
    Edited to hopefully make it clearer. – DominicM May 9 '16 at 15:32