blob: 476f5c392dea69dd94b0aab2e8c4bc698a1559ff (
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="/home/david/projects/notes/jira/${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"
|