mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
parent
1b7b14895b
commit
467428f514
|
@ -42,7 +42,7 @@ if [ "$TERM" != "linux" ]; then
|
||||||
_install-omp-hooks
|
_install-omp-hooks
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function _render_tooltip() {
|
function self-insert() {
|
||||||
# ignore an empty buffer
|
# ignore an empty buffer
|
||||||
if [[ -z "$BUFFER" ]]; then
|
if [[ -z "$BUFFER" ]]; then
|
||||||
zle .self-insert
|
zle .self-insert
|
||||||
|
@ -58,8 +58,7 @@ function _render_tooltip() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function enable_poshtooltips() {
|
function enable_poshtooltips() {
|
||||||
zle -N _render_tooltip
|
zle -N self-insert
|
||||||
bindkey " " _render_tooltip
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_posh-zle-line-init() {
|
_posh-zle-line-init() {
|
||||||
|
|
Loading…
Reference in a new issue