aboutsummaryrefslogtreecommitdiff
path: root/zshenv
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2019-11-18 23:01:07 +0000
committeroreodave <aryadevchavali1@gmail.com>2019-11-18 23:01:07 +0000
commitd4786e78a0b029581ac9d176e7d533342fe2cb95 (patch)
tree0d8e1584dafea40f2a2076f1805f1263403c153d /zshenv
parent5c490a5c908e890b25b3ec9badeac8f3c60a1a9b (diff)
downloaddotfiles-d4786e78a0b029581ac9d176e7d533342fe2cb95.tar.gz
dotfiles-d4786e78a0b029581ac9d176e7d533342fe2cb95.tar.bz2
dotfiles-d4786e78a0b029581ac9d176e7d533342fe2cb95.zip
+Generate template offline by copying the git dir
In case I'm offline, just use this function to generate new projects through copying the template item directly
Diffstat (limited to 'zshenv')
-rw-r--r--zshenv12
1 files changed, 12 insertions, 0 deletions
diff --git a/zshenv b/zshenv
index 270e2fc..5fb3278 100644
--- a/zshenv
+++ b/zshenv
@@ -27,6 +27,18 @@ gentemplate() {
rm -rf $2/.git;
}
+gentemplateoff () {
+ case $1 in
+ 'c') cp -r ~/Projects/Templates/CTemplate $2;;
+ 'cpp') cp -r ~/Projects/Templates/CPPTemplate $2;;
+ 'python') cp -r ~/Projects/Templates/PythonTemplate $2;;
+ 'node') cp -r ~/Projects/Templates/NodeTemplate $2;;
+ 'ard') cp -r ~/Projects/Templates/ArduinoTemplate $2;;
+ *) return;;
+ esac
+ rm -rf $2/.git;
+}
+
# Web Querying
search () {
search_query=${1// /_}