@@ -12,6 +12,41 @@ Assuming VS Code and [Marp for VS Code](https://github.com/marp-team/marp-vscode
1212
1313You need to have the folder ` .vscode ` + ` settings.json `
1414
15+ ### My custom script to create a quick note ~ to add in ` ~/.bashrc ` or ` ~/.zshrc `
16+
17+ ``` sh
18+ # Assuming VS Code && Marp plugin are installed
19+ function notes() {
20+ mkdir " $1 "
21+ cd " $1 "
22+ mkdir .vscode
23+ echo " {
24+ \" markdown.marp.themes\" : [
25+ \" a4-light.css\" ,
26+ \" a4-dark.css\"
27+ ]
28+ }" >> .vscode/settings.json
29+ echo " ---" >> " $1 " .md
30+ echo " marp: true" >> " $1 " .md
31+ echo " theme: a4-dark" >> " $1 " .md
32+ echo " paginate: true" >> " $1 " .md
33+ echo " ---" >> " $1 " .md
34+ echo " " >> " $1 " .md
35+ date=$( date)
36+ echo " <!-- $date -->" >> " $1 " .md
37+ echo " " >> " $1 " .md
38+ echo " # $1 " >> " $1 " .md
39+ wget -q " https://raw.githubusercontent.com/stanfrbd/A4-marp/main/a4-light.css"
40+ wget -q " https://raw.githubusercontent.com/stanfrbd/A4-marp/main/a4-dark.css"
41+ wget -q " https://raw.githubusercontent.com/stanfrbd/A4-marp/main/atom-one-dark.css"
42+ code .
43+ }
44+ ```
45+ > Usage: ` notes <project_name> `
46+ >
47+ > This will a create a foler ` <project_name> ` containing a file ` <project_name>.md ` with the date inside. \
48+ > This will also create the folder ` <project_name>/.vscode ` and the custom A4 themes from this repo.
49+
1550## Dark theme
1651
1752Put
@@ -48,9 +83,9 @@ at the beginning of the `.md` file.
4883![ image] ( https://user-images.githubusercontent.com/44167150/122885276-3a554800-d33f-11eb-8a3c-f89b563f4e60.png )
4984![ image] ( https://user-images.githubusercontent.com/44167150/122885346-4b05be00-d33f-11eb-9e89-619c4dda125e.png )
5085
51- # Printing - gain of ink
86+ ## Printing - gain of ink
5287
53- > Use the light theme and change this in your a4-light.css
88+ > Use the light theme and change this in your ` a4-light.css `
5489
5590``` css
5691pre {
0 commit comments