mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
14 lines
288 B
Bash
Executable File
14 lines
288 B
Bash
Executable File
#!/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"
|