From e0bd28ee2886e14119208b3a05e0dd48fb3531ae Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Thu, 21 Dec 2023 16:00:27 +0200 Subject: 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 --- scripts/.scripts/rust_template.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/.scripts/rust_template.sh (limited to 'scripts/.scripts/rust_template.sh') 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 -- cgit v1.2.3