From 1d3635e0d8c0cae686dbe7e4f1346b0619f4803d Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 17 Mar 2023 08:43:51 -0400 Subject: Fix zsh config --- zsh/.zshrc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 1d3dbc8..e0dec6e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,5 +1,6 @@ if [[ ${INSIDE_EMACS} == *comint* ]]; then - TERM=xterm-256color + TERM=xterm-256color + unsetopt zle fi if [[ ${TERM} = "dumb" ]]; then # This fixes TRAMP. @@ -66,12 +67,14 @@ if (( $+commands[zoxide] )); then fi # Issues when typing 'ssh root@' with fast syntax hilighting. -source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh -# source ~/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh -# if [[ ! -f ~/.zsh/fast-syntax-highlighting/current_theme.zsh ]]; then -# fpath+=$HOME/.zsh/fast-syntax-highlighting -# fast-theme clean -# fi +if [[ -n ${INSIDE_EMACS} ]]; then + source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh + # source ~/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh + # if [[ ! -f ~/.zsh/fast-syntax-highlighting/current_theme.zsh ]]; then + # fpath+=$HOME/.zsh/fast-syntax-highlighting + # fast-theme clean + # fi +fi # allow editing of command line autoload -U edit-command-line -- cgit v1.2.3