From 5968ceccc9269058eb84a9503acdad7c2ede258f Mon Sep 17 00:00:00 2001 From: David Sadler Date: Tue, 7 Jul 2026 09:19:23 +0100 Subject: WSL Add local_bin for ~/.local/bin --- install.sh | 1 + local_bin/.local/bin/notes.sh | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 local_bin/.local/bin/notes.sh diff --git a/install.sh b/install.sh index 5c65c4d..ebfa103 100755 --- a/install.sh +++ b/install.sh @@ -18,6 +18,7 @@ dotfiles=( starship tmux xinitrc + local_bin ) for f in "${dotfiles[@]}"; do diff --git a/local_bin/.local/bin/notes.sh b/local_bin/.local/bin/notes.sh new file mode 100755 index 0000000..77cee62 --- /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="${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" -- cgit v1.2.3-13-gbd6f