aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-01-14 12:50:40 +0100
committerThomas Schmucker <ts@its1.de>2026-01-14 12:50:40 +0100
commitc24691dc29a973e80d877fafafe26a7794b8b019 (patch)
tree7ccf7d917b77a7b09cafad5288da844d8a43203b /zsh/zshrc
parent28a63da650901fef8ba2480d7a085ea4a3acb8df (diff)
downloaddotfiles-c24691dc29a973e80d877fafafe26a7794b8b019.tar.gz
dotfiles-c24691dc29a973e80d877fafafe26a7794b8b019.tar.bz2
dotfiles-c24691dc29a973e80d877fafafe26a7794b8b019.zip
zsh: Unterstütze bei den ZSH-Plugins Mac und FreeBSD
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc20
1 files changed, 17 insertions, 3 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index d336bfc..71b30ba 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -17,6 +17,11 @@ function chpwd() {
17 done 17 done
18} 18}
19 19
20# Funktionen
21function source_file() {
22 [[ ! -r "$1" ]] || source "$1"
23}
24
20# Optionen 25# Optionen
21setopt AUTO_PARAM_SLASH 26setopt AUTO_PARAM_SLASH
22unsetopt CASE_GLOB 27unsetopt CASE_GLOB
@@ -25,9 +30,18 @@ setopt INC_APPEND_HISTORY
25setopt SHARE_HISTORY 30setopt SHARE_HISTORY
26setopt HIST_IGNORE_ALL_DUPS 31setopt HIST_IGNORE_ALL_DUPS
27 32
28[[ ! -r /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] || source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 33source_file "$HOME/.opam/opam-init/init.zsh"
29[[ ! -r /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] || source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh 34
30[[ ! -r "$HOME/.opam/opam-init/init.zsh" ]] || source "$HOME/.opam/opam-init/init.zsh" 35case "$OSTYPE" in
36 darwin*)
37 source_file "/opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
38 source_file "/opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
39 ;;
40 freebsd*)
41 source_file "/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
42 source_file "/usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
43 ;;
44esac
31 45
32bindkey -v 46bindkey -v
33export KEYTIMEOUT=1 47export KEYTIMEOUT=1