aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc6
1 files changed, 4 insertions, 2 deletions
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~'