chezmoi: bash, ipython, sioyek, zed

This commit is contained in:
js0ny 2025-09-27 12:51:25 +01:00
parent 295f94ddb9
commit 81da252906
32 changed files with 51 additions and 644 deletions

View file

@ -1,21 +0,0 @@
from IPython.core.magic import register_line_magic
@register_line_magic
def ps(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))
else:
return "\n".join(output)
@register_line_magic
def nu(cmd):
output = get_ipython().getoutput(f"nu -c {cmd}")
# If no variable is assigned to the output, print it
if get_ipython().last_execution_result is None:
print("\n".join(output))
else:
return "\n".join(output)