use .hosttype for conditions

This commit is contained in:
inkch
2024-01-17 11:18:44 +09:00
parent b86adbe790
commit dcfb6648d1
5 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# 256 color
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
{{- if eq .hosttype "desktop" "laptop" }}
set -g default-terminal "screen-256color"
{{- else }}
set -g default-terminal "tmux-256color"
@ -83,7 +83,7 @@ bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
# Aesthetic
###########################
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
{{- if eq .hosttype "desktop" "laptop" }}
set -g pane-active-border-style fg=yellow
set -g message-command-style 'fg=#eeeeee bg=#333333 bold'
set -g message-style 'fg=#eeeeee bg=#333333 bold'
@ -114,7 +114,7 @@ set -g window-status-current-format ''
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
{{- if eq .hosttype "desktop" "laptop" }}
###############################################
# local and nested remote tmux sessions
# - https://www.freecodecamp.org/news/tmux-in-practice-local-and-nested-remote-tmux-sessions-4f7ba5db8795/