add os config

This commit is contained in:
ant 2025-05-21 22:58:44 +02:00
parent d8d692d313
commit 33bf5ec883
30 changed files with 271 additions and 5 deletions

View file

@ -1,19 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -i fish
#!nix-shell -p fish gcc
set file (realpath $argv[1])
set workdir (mktemp -d)
cd $workdir
set extension (string match -r '\.([a-z]+)$' $file | head -n 1)
switch $extension
case ".c"
gcc -o a.out $file
./a.out
case ".py"
python $file
end