---
** [tickets:#102] starting-directory (-c) option not working**
**Status:** open
**Created:** Sat Feb 22, 2014 08:52 PM UTC by jfelchner
**Last Updated:** Sat Feb 22, 2014 08:52 PM UTC
**Owner:** nobody
I just upgraded to 1.9 and I'm having a bit of an issue with the new -c option
which was added to 'new-session' and 'new-window'.
I have a function which I can pass a project name and it will open a new tmux
session/window set for the project.
I have the following lines in a function that I execute:
old_tmux="$TMUX"
unset TMUX
tmux new-session -A -d -s "$session_name" -c "$working_directory"
tmux send-keys -t "$session_name" "$EDITOR ." C-m
tmux new-window -t "$session_name" -c "$working_directory"
tmux select-window -t "$session_name:1"
export TMUX="$old_tmux"
Everything works great, but when I open new windows or panes, it defaults to my
home directory instead of the value of $working_directory.
The initial windows however open in the "$working_directory".
I'm on Mac OSX 10.8
---
Sent from sourceforge.net because tmux-users@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/tmux/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/tmux/admin/tickets/options. Or, if this is a mailing
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users