I have a similar update function here. With a bit more bells and whistles: https://github.com/dannyfritz/dotfiles/blob/e53d410364bf6e2f4e1de4b9c6abbbc832db67b1/fish/config.fish#L123
Milwaukee People's Flag
https://www.gannett-cdn.com/-mm-/f956ecb92958ba4e13a29799b7cf6305eb3eb1b5/c=0-32-1800-1049/local/-/media/2018/03/05/WIGroup/Milwaukee/636558656906561198-stincol07-002.JPG?width=1800&height=1017&fit=crop&format=pjpg&auto=webp
I tried it out on Fedora a few months ago and I found alacritty felt faster in nvim. So i stayed on alacritty.
I remove my hat and sunglasses because I was taught it is polite to do so.
I have a similar update function here. With a bit more bells and whistles: https://github.com/dannyfritz/dotfiles/blob/e53d410364bf6e2f4e1de4b9c6abbbc832db67b1/fish/config.fish#L123