aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/rust_template.sh
blob: f4ab224c5c6f32d2ab04eb05a6f894e7655f6a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
echo -e "sure? y)es n)o d)on't open the file"
read input
if [ "$input" = "y" ]; then
	mkdir "$1"
	cd "$1" || exit
	cp ~/programming/rust-template/main.rs .
	cp ~/programming/rust-template/rust-project.json .
	nvim main.rs
fi
if [ "$input" = "d" ]; then
	mkdir "$1"
	cp ~/programming/rust-template/main.rs "$1"
	cp ~/programming/rust-template/rust-project.json .
fi