Add font configuration
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
636c25e519
commit
3aab1c0e4e
5 changed files with 54 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue