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 <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Nov 11, 2023
1 parent 6583395 commit af1e9c4
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 @@ -535,6 +535,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 af1e9c4

Please sign in to comment.