2 Commits

Author SHA1 Message Date
98804b3aa5 feat: Adds new-proposal function 2025-03-11 09:09:55 -04:00
53db3f3e8f feat: Adds new-proposal function 2025-03-11 08:57:37 -04:00
3 changed files with 24 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ require("lazy").setup({
}, },
{ {
"vhyrro/luarocks.nvim", "vhyrro/luarocks.nvim",
enabled = true,
priority = 1001, -- this plugin needs to run before anything else priority = 1001, -- this plugin needs to run before anything else
opts = { opts = {
rocks = { "magick" }, rocks = { "magick" },

View File

@@ -66,7 +66,8 @@ path_prepend \
"$GOPATH/bin" \ "$GOPATH/bin" \
"$XDG_DATA_HOME/bin" \ "$XDG_DATA_HOME/bin" \
"$HOME/.local/bin" \ "$HOME/.local/bin" \
"$SCRIPTS" "$SCRIPTS" \
"$HOME/.local/pnpm"
# last arg will be first in $FPATH # last arg will be first in $FPATH
fpath_prepend \ fpath_prepend \
@@ -215,3 +216,11 @@ source <(kubectl completion zsh)
# I tried sourcing them in the the `.zshenv` files, but did not work. # I tried sourcing them in the the `.zshenv` files, but did not work.
_source_if "$ZDOTDIR/.zshrc-local" _source_if "$ZDOTDIR/.zshrc-local"
_source_if "$LOCAL_ENV" _source_if "$LOCAL_ENV"
# pnpm
export PNPM_HOME="/Users/michael/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end

View File

@@ -0,0 +1,13 @@
#!/bin/zsh
prefix=$(date '+%y.%m.%d')
name=$(gum input --placeholder="Enter customer name...")
if [ -z "$name" ]; then
echo "Name should not be blank." && exit 1
fi
cleanedName="${name%% *}${name##* }"
directory="$PROPOSALS/$prefix.$cleanedName"
mkdir "$directory"
echo "$directory"