mirror of
1
0
Fork 0

optionally prompt for session name when creating a new session

This commit is contained in:
Gregory Pakosz 2015-10-23 22:15:43 +02:00
parent 921c6d14d0
commit b9943589e3
2 changed files with 12 additions and 4 deletions

View File

@ -57,9 +57,6 @@ set -g visual-activity off
# -- navigation ----------------------------------------------------------------
# create new session
bind C-c new-session
# find session
bind C-f command-prompt -p find-session 'switch-client -t %%'
@ -150,7 +147,7 @@ if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local'
# -- 8< ------------------------------------------------------------------------
run 'cut -c3- ~/.tmux.conf | sh -s apply_theme'
run 'cut -c3- ~/.tmux.conf | sh -s apply_configurable_bindings $tmux_conf_new_windows_retain_current_path $tmux_conf_new_panes_retain_current_path'
run 'cut -c3- ~/.tmux.conf | sh -s apply_configurable_bindings'
run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $name; done;'
@ -475,6 +472,13 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
# bind - split-window -v \;\
# bind _ split-window -h
# fi
#
# tmux_conf_new_session_prompt=${tmux_conf_new_session_prompt:-false}
# if [ x"$tmux_conf_new_session_prompt" = x"true" ] || [ x"$tmux_conf_new_session_prompt" = x"1" ] ; then
# tmux bind C-c command-prompt -p new-session 'new-session -s %%'
# else
# tmux bind C-c new-session
# fi
# }
#
# urlview() {

View File

@ -76,6 +76,10 @@ tmux_conf_new_windows_retain_current_path=false
tmux_conf_new_panes_retain_current_path=true
#tmux_conf_new_panes_retain_current_path=false
# prompt for session name when creating a new session
tmux_conf_new_session_prompt=false
#tmux_conf_new_session_prompt=true
# if you're running tmux within iTerm2
# - and tmux is 1.9 or 1.9a
# - and iTerm2 is configured to let option key act as +Esc