From 8974de23ae61f577a1e21fbf729294da74b0d18c Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Thu, 21 Sep 2023 14:25:26 +0100 Subject: [PATCH] Added core commands for ESR --- .config/fish/myfunctions/qol.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.config/fish/myfunctions/qol.fish b/.config/fish/myfunctions/qol.fish index 7b1dde4..5fa9594 100644 --- a/.config/fish/myfunctions/qol.fish +++ b/.config/fish/myfunctions/qol.fish @@ -8,3 +8,17 @@ end function restore --argument file mv $file (echo $file | sed s/.bak//) end + +function core + xhost +local:root + sudo docker exec -it core core-gui +end + +function core-bash + sudo docker exec -it core /bin/bash +end + +function launch-term --argument nodename + sudo docker exec -it core xterm -bg black -fg white -fa 'DejaVu Sans Mono' -fs 16 -e vcmd -c /tmp/pycore.1/$nodename -- /bin/bash +end +