X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=blobdiff_plain;f=core%2F10_terminal%2F10_terminal.zshrc;h=614bf3dca86877e06c701bcdae34191edfc2e904;hp=6fe59e991afef7723ead8caeb8d934ab95240241;hb=328f02bc3c0d7cbada53104fa680e28e872c3106;hpb=7a1a81db4192b8794a3c40158f281aef7b47f0bb diff --git a/core/10_terminal/10_terminal.zshrc b/core/10_terminal/10_terminal.zshrc index 6fe59e9..614bf3d 100644 --- a/core/10_terminal/10_terminal.zshrc +++ b/core/10_terminal/10_terminal.zshrc @@ -1,6 +1,19 @@ # AX-ZSH: Alex' Modular ZSH Configuration # 10_terminal.zshrc: Initialize terminal settings +# Common helper functions + +# Check if terminal supports Unicode. +# +function axzsh_is_utf_terminal { + case "$LANG $CHARSET $LANGUAGE" in + (*utf*) return 0 ;; + (*UTF*) return 0 ;; + (*) return 1 ;; + esac +} +alias isutfenv=axzsh_is_utf_terminal + # Set terminal title # Set terminal "hardstatus" and "icon title"