2023-03-17 15:06:26 +00:00
|
|
|
bind \cH backward-kill-path-component
|
|
|
|
bind "[3;5~" kill-word
|
|
|
|
|
2023-05-21 20:18:09 +01:00
|
|
|
function backup --argument filename
|
|
|
|
cp $filename $filename.bak
|
|
|
|
end
|
2023-03-17 15:06:26 +00:00
|
|
|
|
2023-05-21 20:18:09 +01:00
|
|
|
function restore --argument file
|
|
|
|
mv $file (echo $file | sed s/.bak//)
|
|
|
|
end
|
2023-09-21 14:25:26 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|