AutoYADM commit: 2025-02-24 14:45:12

This commit is contained in:
Daniel Fichtinger 2025-02-24 14:45:12 -05:00
parent 5eae3f87cd
commit a558358172

17
.zshrc
View file

@ -146,19 +146,14 @@ function viewport_osc() {
}
function mksh() {
local path="$1.sh"
if [[ /usr/bin/pathchk -p -P "$path" && "$path" != "" ]]; then
echo "test"
local filepath="$1.sh"
if [[ ! -f "$filepath" && "$1" != "" ]]; then
echo '#!/bin/env bash\n\necho "Hello, World!"' >>"$filepath"
/usr/bin/chmod +x "$filepath"
echo "$filepath created."
else
echo "else"
echo "$filepath already exists or is invalid."
fi
# if [[ ! -f "$path" ]]; then
# echo '#!/bin/env bash\n\necho "Hello, World!"' >>"$path"
# /usr/bin/chmod +x "$path"
# echo "$path created."
# else
# echo "$path already exists."
# fi
}
# precmd_functions+=(set_win_title viewport_osc)