Files
dotfiles/local/share/dark-mode.d/tmux.sh

11 lines
280 B
Bash
Executable File

#!/usr/bin/env bash
CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
set -euo pipefail
BASE="$(dirname $0)/../../.."
ln -fvs "${BASE}/config/tmux/dark-mode.conf" "${CONFIG_HOME}/tmux/current-theme.conf"
if tmux list-sessions; then
tmux source "${CONFIG_HOME}/tmux/tmux.conf"
fi