Skip to content

Commit cd3bd8f

Browse files
committed
fixes #80
1 parent 05b360f commit cd3bd8f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nbs/00_core.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
"def _sys_info():\n",
301301
" sys = co(['uname', '-a'], text=True).strip()\n",
302302
" ssys = f'<system>{sys}</system>'\n",
303-
" shell = co('echo $SHELL', shell=True, text=True).strip()\n",
303+
" shell = os.environ.get('SHELL', '/bin/bash')\n",
304304
" sshell = f'<shell>{shell}</shell>'\n",
305305
" saliases = f'<aliases>\\n{_aliases(shell)}\\n</aliases>'\n",
306306
" return f'<system_info>\\n{ssys}\\n{sshell}\\n{saliases}\\n</system_info>'"

shell_sage/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _aliases(shell):
142142
def _sys_info():
143143
sys = co(['uname', '-a'], text=True).strip()
144144
ssys = f'<system>{sys}</system>'
145-
shell = co('echo $SHELL', shell=True, text=True).strip()
145+
shell = os.environ.get('SHELL', '/bin/bash')
146146
sshell = f'<shell>{shell}</shell>'
147147
saliases = f'<aliases>\n{_aliases(shell)}\n</aliases>'
148148
return f'<system_info>\n{ssys}\n{sshell}\n{saliases}\n</system_info>'

0 commit comments

Comments
 (0)