diff --git a/dotfiles/bash/scripts/cgen.sh b/dotfiles/bash/scripts/cgen.sh index c4e8443..0b9b7e1 100755 --- a/dotfiles/bash/scripts/cgen.sh +++ b/dotfiles/bash/scripts/cgen.sh @@ -80,8 +80,8 @@ cp $script_dir/cgen_etc/gitignore_template $name/.gitignore sample_file=$name/src/main.c echo "#include " >> $sample_file -echo "" -echo "" +echo "" >> $sample_file +echo "" >> $sample_file echo "int main(int argc, char **argv)" >> $sample_file echo "{" >> $sample_file echo " printf(\"Hello, world!\\n\");" >> $sample_file diff --git a/dotfiles/bash/scripts/cgen_etc/template_clang_format b/dotfiles/bash/scripts/cgen_etc/template_clang_format deleted file mode 100644 index 94ff769..0000000 --- a/dotfiles/bash/scripts/cgen_etc/template_clang_format +++ /dev/null @@ -1,13 +0,0 @@ -AlignConsecutiveAssignments: 'true' -AlignTrailingComments: 'true' -AllowShortBlocksOnASingleLine: 'false' -AllowShortCaseLabelsOnASingleLine: 'false' -AllowShortFunctionsOnASingleLine: None -AllowShortIfStatementsOnASingleLine: Never -AllowShortLoopsOnASingleLine: 'false' -BreakBeforeBraces: Allman -ColumnLimit: '120' -IndentWidth: '4' -PointerAlignment: Right -SortIncludes: 'false' - diff --git a/dotfiles/bash/scripts/cgen_etc/template_gitignore b/dotfiles/bash/scripts/cgen_etc/template_gitignore deleted file mode 100644 index 1d8cedd..0000000 --- a/dotfiles/bash/scripts/cgen_etc/template_gitignore +++ /dev/null @@ -1,83 +0,0 @@ -# Prerequisites -*.d - -# Object files -*.o -*.ko -*.obj -*.elf - -# Linker output -*.ilk -*.map -*.exp - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex - -# Debug files -*.dSYM/ -*.su -*.idb -*.pdb - -# Kernel Module Compile Results -*.mod* -*.cmd -.tmp_versions/ -modules.order -Module.symvers -Mkfile.old -dkms.conf - -# VSCode - -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -# Vim - -# Swap -[._]*.s[a-v][a-z] -!*.svg # comment out if you don't need vector files -[._]*.sw[a-p] -[._]s[a-rt-v][a-z] -[._]ss[a-gi-z] -[._]sw[a-p] - -# Session -Session.vim -Sessionx.vim - -# Temporary -.netrwhist -*~ -# Auto-generated tag files -tags -# Persistent undo -[._]*.un~