Bugfix: default-command utilizes $SHELL env var

The `default-command` setting on OS X determines the default shell if
`default-shell` is not set.
This update enables use of any user defined shell, even if
`default-shell` is not set.

Fixes #2
This commit is contained in:
Bruno Sutic 2014-08-04 15:47:57 +02:00
parent 624213f676
commit 97904bc483
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Changelog # Changelog
### master ### master
- bugfix: determine the default shell from the $SHELL env var on OS X
### v1.0.0, 2014-07-30 ### v1.0.0, 2014-07-30
- initial work on the plugin - initial work on the plugin

View File

@ -67,7 +67,7 @@ main() {
# required (only) on OS X # required (only) on OS X
if is_osx && option_value_not_changed "default-command" ""; then if is_osx && option_value_not_changed "default-command" ""; then
tmux set-option -g default-command "reattach-to-user-namespace -l bash" tmux set-option -g default-command "reattach-to-user-namespace -l $SHELL"
fi fi
# upgrade $TERM # upgrade $TERM