mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(zsh, ipython): New symblink scripts, IPython linked with directory
This commit is contained in:
parent
fdf460a547
commit
f69dc967e0
12 changed files with 75 additions and 37 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue