Skip to content

Commit 5aaad83

Browse files
committed
tmux kill-window shortcut & update new window to empty name
1 parent f48ba21 commit 5aaad83

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tmux/tmux.conf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ set -g prefix C-a
3535
# 'C-a' + 'C-a' to use 'C-a' (e.g. necessary to use shortcut inside emacs)
3636
bind-key C-a send-prefix
3737

38-
# create a new window with C-a C-c or C-t; default to home directory
39-
bind c new-window -c "~" \; display-message "Consider using C-t to create a new window"
40-
bind -n C-t new-window -c "~"
38+
# create a new window with C-a C-c or C-t; default to home directory, & with
39+
# empty name
40+
bind c new-window -c "~" -n "" \; display-message "Consider using C-t to create a new window"
41+
bind -n C-t new-window -c "~" -n ""
42+
43+
# close a window with C-w
44+
bind -n C-w kill-window
4145

4246
# split panes using | and -; new pane defaults to current directory
4347
bind | split-window -h -c "#{pane_current_path}"

0 commit comments

Comments
 (0)