3 added 727 characters in body
source | link

just provide the directory you want manually when you create the split

:split-window -c "/dir/you/want"

e.g.

<prefix>,:, split-window -c "/var/lib/apt"

Explanation

split-window is the tmux command to create a split, it takes alot of options to allow you to specify size, string interpolations as well as -c to specify working directory.

from man tmux | less '+/^\s*split-window'

 split-window [-bdhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane] [shell-command] [-F format]
               (alias: splitw)

Create a new pane by splitting target-pane:
-h does a horizontal split and -v a vertical split; if neither is specified, -v is assumed.
The -l and -p options specify the size of the new pane in lines (for vertical split) or in cells (for horizontal split), or as a percentage, respectively. The -b option causes the new pane to be created to the left of or above target-pane. All other options have the same meaning as for the new-window command.

you can bind the command also, e.g.

bind '"' split-window -v -c "$PWD"  # Split panes horizontal

just provide the directory you want manually when you create the split

:split-window -c "/dir/you/want"

e.g.

<prefix>,:, split-window -c "/var/lib/apt"

from man tmux | less '+/^\s*split-window'

 split-window [-bdhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane] [shell-command] [-F format]
               (alias: splitw)

Create a new pane by splitting target-pane:
-h does a horizontal split and -v a vertical split; if neither is specified, -v is assumed.
The -l and -p options specify the size of the new pane in lines (for vertical split) or in cells (for horizontal split), or as a percentage, respectively. The -b option causes the new pane to be created to the left of or above target-pane. All other options have the same meaning as for the new-window command.

just provide the directory you want manually when you create the split

:split-window -c "/dir/you/want"

e.g.

<prefix>,:, split-window -c "/var/lib/apt"

Explanation

split-window is the tmux command to create a split, it takes alot of options to allow you to specify size, string interpolations as well as -c to specify working directory.

from man tmux | less '+/^\s*split-window'

 split-window [-bdhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane] [shell-command] [-F format]
               (alias: splitw)

Create a new pane by splitting target-pane:
-h does a horizontal split and -v a vertical split; if neither is specified, -v is assumed.
The -l and -p options specify the size of the new pane in lines (for vertical split) or in cells (for horizontal split), or as a percentage, respectively. The -b option causes the new pane to be created to the left of or above target-pane. All other options have the same meaning as for the new-window command.

you can bind the command also, e.g.

bind '"' split-window -v -c "$PWD"  # Split panes horizontal
2 added 727 characters in body
source | link

just provide the directory you want manually when you create the split

:split-window -c "/dir/you/want"

e.g.

<prefix>,:, split-window -c "/var/lib/apt"

from man tmux | less '+/^\s*split-window'

 split-window [-bdhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane] [shell-command] [-F format]
               (alias: splitw)

Create a new pane by splitting target-pane:
-h does a horizontal split and -v a vertical split; if neither is specified, -v is assumed.
The -l and -p options specify the size of the new pane in lines (for vertical split) or in cells (for horizontal split), or as a percentage, respectively. The -b option causes the new pane to be created to the left of or above target-pane. All other options have the same meaning as for the new-window command.

just provide the directory you want manually when you create the split

:split-window -c "/dir/you/want"

e.g.

<prefix>,:, split-window -c "/var/lib/apt"

just provide the directory you want manually when you create the split

:split-window -c "/dir/you/want"

e.g.

<prefix>,:, split-window -c "/var/lib/apt"

from man tmux | less '+/^\s*split-window'

 split-window [-bdhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane] [shell-command] [-F format]
               (alias: splitw)

Create a new pane by splitting target-pane:
-h does a horizontal split and -v a vertical split; if neither is specified, -v is assumed.
The -l and -p options specify the size of the new pane in lines (for vertical split) or in cells (for horizontal split), or as a percentage, respectively. The -b option causes the new pane to be created to the left of or above target-pane. All other options have the same meaning as for the new-window command.

1
source | link

just provide the directory you want manually when you create the split

:split-window -c "/dir/you/want"

e.g.

<prefix>,:, split-window -c "/var/lib/apt"