blob: 77cee624dc64561602ccaa77b743906f96fea16d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# Prompt the user for the Jira ID
read -p "Enter Jira ID (e.g., APP-123): " jira_id
# Prompt the user for the Title
read -p "Enter Title: " title
# Define the filename based on the Jira ID
filename="${jira_id}.md"
# Create the file and write the formatted template
cat << EOF > "$filename"
# [$jira_id $title](https://flashacademy.atlassian.net/browse/$jira_id)
## Notes
## TODO
EOF
# Open the newly created file in Neovim
nvim "$filename"
|