Skip to content

Commit bfaa5fe

Browse files
committed
update: location of creating project structure.
1 parent 6a2ef26 commit bfaa5fe

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

.vscode/.zshrc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,24 @@ if [ -d "$PROJECT_FOLDER/venv" ]; then
129129
fi
130130

131131
source $PROJECT_FOLDER/venv/bin/activate
132-
fi
132+
fi
133+
134+
# Auto Create Project Note Structure.
135+
function create_project_structure () {
136+
if [ -f "index.md" ];then # lock the project folder
137+
return
138+
fi
139+
mkdir -p $PROJECT_FOLDER/{hosts,users,services}
140+
touch $PROJECT_FOLDER/hosts/host-list.md
141+
touch $PROJECT_FOLDER/users/user-list.md
142+
touch $PROJECT_FOLDER/services/service-list.md
143+
touch $PROJECT_FOLDER/index.md
144+
echo "Project Folder sturcture created completed!"
145+
}
146+
create_project_structure
147+
unset -f create_project_structure
148+
149+
function clean_project_structure () {
150+
rm -rf $PROJECT_FOLDER/{hosts,users,services} $PROJECT_FOLDER/index.md
151+
echo "Project Folder sturcture cleaned completed!"
152+
}

.vscode/env.zsh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,3 @@ function wfuzz_vhost_https () {
165165
wfuzz -c -w $wordlist -H "Host: FUZZ.$host" -u "https://$host" $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19
166166
}
167167

168-
function create_project_structure () {
169-
if [ -f "index.md" ];then # lock the project folder
170-
return
171-
fi
172-
mkdir -p $PROJECT_FOLDER/{hosts,users,services}
173-
touch $PROJECT_FOLDER/hosts/host-list.md
174-
touch $PROJECT_FOLDER/users/user-list.md
175-
touch $PROJECT_FOLDER/services/service-list.md
176-
touch $PROJECT_FOLDER/index.md
177-
echo "Project Folder sturcture created completed!"
178-
}
179-
create_project_structure
180-
unset -f create_project_structure
181-
182-
function clean_project_structure () {
183-
rm -rf $PROJECT_FOLDER/{hosts,users,services} $PROJECT_FOLDER/index.md
184-
echo "Project Folder sturcture cleaned completed!"
185-
}

0 commit comments

Comments
 (0)