Skip to content

Commit

Permalink
Set default shell on Windows to "powershell"
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
  • Loading branch information
JeanChristopheMorinPerso committed Feb 4, 2024
1 parent aff89bd commit 13dc3c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/rez/rezconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@
# The default shell type to use when creating resolved environments (eg when using
# :ref:`rez-env`, or calling :meth:`.ResolvedContext.execute_shell`). If empty or None, the
# current shell is used (for eg, "bash").
#
# .. versionchanged:: 3.0.0
# The default value on Windows was changed to "powershell".
default_shell = ""

# The command to use to launch a new Rez environment in a separate terminal (this
Expand Down
2 changes: 1 addition & 1 deletion src/rez/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def shell(self):
raise RezSystemError("no shells available")

if self.platform == "windows":
return "cmd"
return "powershell"
else:
import subprocess as sp
shell = None
Expand Down

0 comments on commit 13dc3c9

Please sign in to comment.