parent
d74cd962f0
commit
780d05ceb1
|
|
@ -37,9 +37,9 @@ def __zoxide_pwd() -> str:
|
||||||
{%- if resolve_symlinks %}
|
{%- if resolve_symlinks %}
|
||||||
pwd = os.getcwd()
|
pwd = os.getcwd()
|
||||||
{%- else %}
|
{%- else %}
|
||||||
pwd = os.getenv("PWD")
|
pwd = __xonsh__.env.get("PWD")
|
||||||
if pwd is None:
|
if pwd is None:
|
||||||
raise Exception("$PWD not found in env")
|
raise Exception("$PWD not found in Xonsh env")
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
return pwd
|
return pwd
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue