aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/rust_template.sh
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-12-21 16:00:27 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-12-21 16:00:27 +0200
commite0bd28ee2886e14119208b3a05e0dd48fb3531ae (patch)
tree35423c42e123c6d1882d7b9cf6f567b01b5887db /scripts/.scripts/rust_template.sh
parente845dae21c63af9a015d7a095d66624ca011fe12 (diff)
downloaddotfiles-e0bd28ee2886e14119208b3a05e0dd48fb3531ae.tar.xz
dotfiles-e0bd28ee2886e14119208b3a05e0dd48fb3531ae.zip
Added two new bindkeys in zsh to go up and own the history using C-k and C-j instead of C-p and C-n
Diffstat (limited to 'scripts/.scripts/rust_template.sh')
-rwxr-xr-xscripts/.scripts/rust_template.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/.scripts/rust_template.sh b/scripts/.scripts/rust_template.sh
new file mode 100755
index 0000000..f4ab224
--- /dev/null
+++ b/scripts/.scripts/rust_template.sh
@@ -0,0 +1,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