AutoYADM commit: 2025-02-23 19:45:07

This commit is contained in:
Daniel Fichtinger 2025-02-23 19:45:07 -05:00
parent 753d7eaa27
commit d1db986e15

12
.zshrc
View file

@ -142,6 +142,18 @@ function set_win_title(){
function viewport_osc(){ function viewport_osc(){
print -Pn "\e]133;A\e\\" print -Pn "\e]133;A\e\\"
} }
function mksh(){
local path="$1.sh"
if [[ ! -f "$path" ]]; then
echo "#!/bin/env bash\n" >> "$path"
/usr/bin/chmod +x "$path"
echo "$path created."
else
echo "$path already exists."
fi
}
# precmd_functions+=(set_win_title viewport_osc) # precmd_functions+=(set_win_title viewport_osc)
precmd_functions+=(viewport_osc) precmd_functions+=(viewport_osc)
zle -N zle-line-init zle -N zle-line-init