diff options
author | katherine <ageha@airen-no-jikken.icu> | 2021-08-05 12:11:14 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2021-08-05 12:11:14 -0700 |
commit | 49973cf842e000db244bbfab517da51adddb141c (patch) | |
tree | 1c59aa494f94ed2ad81117bcf594864792836b18 /.zshrc | |
parent | 038ba2859c2f3f0bdcdfd3ed46dd3df999279d29 (diff) | |
download | dotfiles-49973cf842e000db244bbfab517da51adddb141c.tar.gz |
urxvt -> alacritty
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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~' |