Clean up convenience functions

This commit is contained in:
2022-01-04 21:55:44 +01:00
parent d6025a1db7
commit d69a047172
3 changed files with 26 additions and 5 deletions

9
dbg
View File

@@ -1,6 +1,9 @@
#!/usr/bin/env bash
default="gdb -q -x /opt/toolchain/gdbinit"
default="gdb \
-q \
-x /opt/toolchain/gdbinit\
"
if [[ "$1" == "-" ]]; then
shift
@@ -9,4 +12,6 @@ else
cmd="${default} $@"
fi
docker-compose -f toolchain/docker-compose.yml run --rm -u $(id -u):$(id -g) run ${cmd}
docker-compose -f toolchain/docker-compose.yml run \
--rm \
run ${cmd}