Add font configuration

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-05-30 18:43:16 +02:00
parent 636c25e519
commit 3aab1c0e4e
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
5 changed files with 54 additions and 4 deletions

View file

@ -16,7 +16,6 @@
setopt prompt_subst
unsetopt correct
# Zsh keybindings
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
@ -40,6 +39,15 @@ zstyle ':completion:*' menu select
# Persistent rehash
zstyle ':completion:*' rehash true
# Use colors from xresources for linux console
if [ "$TERM" = "linux" ]; then
_SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p'
for i in $(sed -n "$_SEDCMD" "${XDG_CONFIG_HOME}/X11/xresources" | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do
echo -en "$i"
done
clear
fi
# Sourcing environment variables
if [ -f "${HOME}/.config/custom/env" ]; then
. "${HOME}/.config/custom/env"