Skip to content

Commit d145301

Browse files
authored
Merge pull request #4112 from dmikushin/master
Enable login mode for terminal - to automatically source the /etc/profile script
2 parents 6a96754 + f859abd commit d145301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notebook/terminal/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def initialize(webapp, notebook_dir, connection_url, settings):
2121
shell = settings.get('shell_command',
2222
[os.environ.get('SHELL') or default_shell]
2323
)
24+
# Enable login mode - to automatically source the /etc/profile script
25+
if os.name != 'nt':
26+
shell.append('-l')
2427
terminal_manager = webapp.settings['terminal_manager'] = NamedTermManager(
2528
shell_command=shell,
2629
extra_env={'JUPYTER_SERVER_ROOT': notebook_dir,

0 commit comments

Comments
 (0)