From e9359bb046e7f89565d60bb0cedb95b1b862bf5c Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 12 Sep 2023 14:02:22 +0200 Subject: [PATCH] add settings for other systems like fedora --- .chezmoitemplates/zshrc_linux.tmpl | 9 ++++++++- dot_config/wezterm/executable_wezterm.lua.tmpl | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.chezmoitemplates/zshrc_linux.tmpl b/.chezmoitemplates/zshrc_linux.tmpl index b368b2b..7305e75 100644 --- a/.chezmoitemplates/zshrc_linux.tmpl +++ b/.chezmoitemplates/zshrc_linux.tmpl @@ -112,11 +112,18 @@ function preexec { } export PNPM_HOME="$HOME/.local/share/pnpm" -export PATH="$PATH:$HOME/.local/bin" +export PATH="$PATH:$HOME/bin:$HOME/.local/bin" +{{ if eq .chezmoi.hostname "brothertec" -}} source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/fzf/key-bindings.zsh +{{ else -}} +source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source /usr/share/fzf/shell/key-bindings.zsh +alias wezterm='flatpak run org.wezfurlong.wezterm' +{{ end -}} export EDITOR=vim diff --git a/dot_config/wezterm/executable_wezterm.lua.tmpl b/dot_config/wezterm/executable_wezterm.lua.tmpl index 5c77a2e..ffbb294 100644 --- a/dot_config/wezterm/executable_wezterm.lua.tmpl +++ b/dot_config/wezterm/executable_wezterm.lua.tmpl @@ -132,7 +132,11 @@ return { {{ if eq .chezmoi.os "darwin" -}} window_decorations = "TITLE | RESIZE", {{ else if eq .chezmoi.os "linux" -}} +{{ if eq .chezmoi.hostname "brothertec" -}} window_decorations = "NONE", +{{ else -}} +window_decorations = "TITLE | RESIZE", +{{ end -}} {{ end -}} tab_bar_at_bottom = true, hide_tab_bar_if_only_one_tab = false,