Compare commits
2 commits
1ee0189ff6
...
fe24bd6f45
Author | SHA1 | Date | |
---|---|---|---|
fe24bd6f45 | |||
d2b782d384 |
2 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# ensure COLUMNS is set
|
||||
stty size > /dev/null
|
||||
# stty size > /dev/null
|
||||
|
||||
COLUMNS=$(tput cols)
|
||||
# delay for wezterm to learn it's size
|
||||
sleep 0.2
|
||||
|
||||
|
@ -13,7 +14,7 @@ line() {
|
|||
i=$((i + 1))
|
||||
done
|
||||
}
|
||||
|
||||
echo
|
||||
awk -v columns="$COLUMNS" -v s="$(line)" \
|
||||
'BEGIN{
|
||||
for (colnum = 0; colnum<columns+1; colnum++) {
|
||||
|
|
|
@ -26,3 +26,5 @@ else
|
|||
setopt PROMPT_SUBST
|
||||
PROMPT='%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
|
||||
fi
|
||||
|
||||
zstyle ':completion::complete:make:*:targets' call-command true
|
||||
|
|
Loading…
Reference in a new issue