feat(zsh, ipython): New symblink scripts, IPython linked with directory

This commit is contained in:
js0ny 2024-11-30 02:03:30 +00:00
parent fdf460a547
commit f69dc967e0
12 changed files with 75 additions and 37 deletions

View file

@ -2,7 +2,7 @@ from IPython.core.magic import register_line_magic
@register_line_magic
def ps(cmd):
output = get_ipython().getoutput(f"powershell -Command {cmd}")
output = get_ipython().getoutput(f"pwsh -NoProfile -Command {cmd}")
# If no variable is assigned to the output, print it
if get_ipython().last_execution_result is None:
print("\n".join(output))