AutoYADM commit: 2025-02-23 19:45:07
This commit is contained in:
parent
753d7eaa27
commit
d1db986e15
1 changed files with 12 additions and 0 deletions
12
.zshrc
12
.zshrc
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue