File tree Expand file tree Collapse file tree 1 file changed +21
-14
lines changed
Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -68,20 +68,6 @@ create-parent-dir() {
6868 if [[ " $FILE " =~ / ]]; then mkdir -p " ${FILE%/* } " ; fi
6969}
7070
71- add-link () {
72- local FILE=" $1 "
73- local LINK=" $2 "
74- if [ ! -e " $LINK " ]; then
75- create-parent-dir " $LINK "
76- ln -fs " $FILE " " $LINK "
77- git add " $LINK "
78- fi
79- }
80-
81- add-link .cppsm/.clang-format .clang-format
82- add-link .cppsm/.gitignore .gitignore
83- add-link .cppsm/.prettierrc .prettierrc
84-
8571add-file () {
8672 local FILE=" $1 "
8773 if [ ! -e " $FILE " ]; then
@@ -91,6 +77,27 @@ add-file() {
9177 fi
9278}
9379
80+ add-file .clang-format << EOF
81+ BinPackArguments: false
82+ BinPackParameters: false
83+ ColumnLimit: 80
84+ IndentWidth: 2
85+ EOF
86+
87+ add-file .gitignore << EOF
88+ .build*
89+ EOF
90+
91+ add-file .prettierrc << EOF
92+ {
93+ "bracketSpacing": false,
94+ "printWidth": 80,
95+ "semi": false,
96+ "singleQuote": true,
97+ "proseWrap": "always"
98+ }
99+ EOF
100+
94101add-file CMakeLists.txt << EOF
95102cmake_minimum_required(VERSION 3.10)
96103project($NAME )
You can’t perform that action at this time.
0 commit comments