Skip to content

Commit 6b86ac9

Browse files
committed
Add Open New Window With A Specific Directory as a tmux til
1 parent ebe00b7 commit 6b86ac9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ _327 TILs and counting..._
268268
- [Jumping Between Sessions](tmux/jumping-between-sessions.md)
269269
- [List All Key Bindings](tmux/list-all-key-bindings.md)
270270
- [List Sessions](tmux/list-sessions.md)
271+
- [Open New Window With A Specific Directory](tmux/open-new-window-with-a-specific-directory.md)
271272
- [Organizing Windows](tmux/organizing-windows.md)
272273
- [Paging Up And Down](tmux/paging-up-and-down.md)
273274
- [Pane Killer](tmux/pane-killer.md)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Open New Window With A Specific Directory
2+
3+
When you initially start a tmux session, the default directory is based off
4+
of whatever the current working directory was. Any subsequent windows opened
5+
within that tmux session will be opened with that as the base directory.
6+
7+
To open a window with a different default directory, use the `-c` flag with
8+
the `new-window` command. For example, hit `<prefix>:` and then
9+
10+
```
11+
:new-window -c ~/
12+
```
13+
14+
to open a new window with your home directory.
15+
16+
[source](http://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux)

0 commit comments

Comments
 (0)