From 49973cf842e000db244bbfab517da51adddb141c Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 5 Aug 2021 12:11:14 -0700 Subject: urxvt -> alacritty --- .zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 5f31308..db17642 100644 --- a/.zshrc +++ b/.zshrc @@ -20,7 +20,7 @@ bindkey -e setopt notify unsetopt beep -if [[ "$TERM" == "rxvt-unicode-256color" ]]; then +if [[ $TERM == "rxvt-unicode-256color" || $TERM == "alacritty" ]]; then if [[ -f "$HOME/.config/init/vars" ]]; then source "$HOME/.config/init/vars" else @@ -32,7 +32,7 @@ fi ##################### MISC #################### # dynamic title -if [[ "$TERM" == "rxvt-unicode-256color" ]]; then +if [[ $TERM == "rxvt-unicode-256color" || $TERM == "alacritty" ]]; then precmd() { print -Pn "\e]0;zsh:%(1j,%j job%(2j|s|); ,)%~\a" @@ -99,6 +99,8 @@ ZSH_HIGHLIGHT_STYLES[double-quoted-argument]="fg=red" ################# KEYBINDINGS ################# typeset -g -A key +[[ -f ~/.zkbd/$TERM ]] && source ~/.zkbd/$TERM + [[ $key[F1] ]] || key[F1]='^[[11~' [[ $key[F2] ]] || key[F2]='^[[12~' [[ $key[F3] ]] || key[F3]='^[[13~' -- cgit v1.2.3