summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-03-17 08:43:51 -0400
committerKjetil Orbekk <kj@orbekk.com>2023-03-17 08:43:51 -0400
commit1d3635e0d8c0cae686dbe7e4f1346b0619f4803d (patch)
treee0311bed7ce6a7a6dfc9bf5e29aa746927a5dab8 /zsh
parente8f6089380906f15508bbc17c0157f8652076643 (diff)
Fix zsh config
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc17
1 files 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