Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Salzmann-Jaeckel
tmux-resurrect
Commits
1160c1da
Unverified
Commit
1160c1da
authored
Dec 05, 2019
by
Helmut K. C. Tessarek
Committed by
Bruno Sutic
Dec 06, 2019
Browse files
only add -l when default_shell is bash
parent
c66b791f
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/restore.sh
View file @
1160c1da
...
@@ -100,7 +100,11 @@ tmux_socket() {
...
@@ -100,7 +100,11 @@ tmux_socket() {
# tmux server each time.
# tmux server each time.
cache_tmux_default_command
()
{
cache_tmux_default_command
()
{
local
default_shell
=
"
$(
get_tmux_option
"default-shell"
""
)
"
local
default_shell
=
"
$(
get_tmux_option
"default-shell"
""
)
"
export
TMUX_DEFAULT_COMMAND
=
"
$(
get_tmux_option
"default-command"
"-l
$default_shell
"
)
"
local
opt
=
""
if
[
"
$(
basename
"
$default_shell
"
)
"
==
"bash"
]
;
then
opt
=
"-l "
fi
export
TMUX_DEFAULT_COMMAND
=
"
$(
get_tmux_option
"default-command"
"
$opt$default_shell
"
)
"
}
}
tmux_default_command
()
{
tmux_default_command
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment