Page MenuHomeDevCentral

Improve terminal experience with powerline support
Open, LowPublic

Description

Powerline requires a font installed on the client.
But we can also connect from a client where the font isn't available, and that would break the UI.

As this is a client + server configuration where we can play nice if we communicate the capacity:

Shell configuration

.zshrc | client-side
export POWERLINE_SUPPORTED=1
.zshrc | server-side
if [[ -n "$POWERLINE_SUPPORTED" ]]; then
    source ~/.config/zsh/powerline-prompt.zsh
else
    source ~/.config/zsh/fallback-prompt.zsh
fi

SSH configuration

~/.ssh/config | client-side
Host *.nasqueron.org
    SendEnv POWERLINE_SUPPORTED
/etc/ssh/sshd_config | server-side
AcceptEnv POWERLINE_SUPPORTED

Plan

  • Configure SSH server AcceptEnv POWERLINE_SUPPORTED
  • Configure SSH test client with SendEnv POWERLINE_SUPPORTED
  • Document on https://agora.nasqueron.org/Devserver_reference how to use powerline
  • Create a sample prompt for starship
  • Create a sample bar for tmux