diff options
| author | David Sadler <david@flashacademy.com> | 2026-07-07 09:19:23 +0100 |
|---|---|---|
| committer | David Sadler <david@flashacademy.com> | 2026-08-12 09:17:19 +0100 |
| commit | a1e84e5c22794100e5c9b4490ed467b468284cdf (patch) | |
| tree | a7230ead7b7a7f3ad2e945b44bad5b0d2bb77dee /local_bin/.local/bin | |
| parent | 626c119a60701e2908e5795b3941078ebb8dba6b (diff) | |
WSL Add local_bin for ~/.local/bin
Diffstat (limited to 'local_bin/.local/bin')
| -rwxr-xr-x | local_bin/.local/bin/notes.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/local_bin/.local/bin/notes.sh b/local_bin/.local/bin/notes.sh new file mode 100755 index 0000000..476f5c3 --- /dev/null +++ b/local_bin/.local/bin/notes.sh @@ -0,0 +1,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" |
