From 58f1800eba80256a91f30d4e484e92397dece642 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 6 Mar 2025 20:06:11 -0800 Subject: [PATCH 1/2] Update tmux configuration to preserve status across reboots --- .tmux/.tmux | 1 + .tmux/plugins/tmux-continuum | 1 + .tmux/plugins/tmux-open | 1 + .tmux/plugins/tmux-resurrect | 1 + 4 files changed, 4 insertions(+) create mode 120000 .tmux/.tmux create mode 160000 .tmux/plugins/tmux-continuum create mode 160000 .tmux/plugins/tmux-open create mode 160000 .tmux/plugins/tmux-resurrect diff --git a/.tmux/.tmux b/.tmux/.tmux new file mode 120000 index 0000000..80c3480 --- /dev/null +++ b/.tmux/.tmux @@ -0,0 +1 @@ +/home/d_mcknight/.dotfiles/.tmux \ No newline at end of file diff --git a/.tmux/plugins/tmux-continuum b/.tmux/plugins/tmux-continuum new file mode 160000 index 0000000..0698e8f --- /dev/null +++ b/.tmux/plugins/tmux-continuum @@ -0,0 +1 @@ +Subproject commit 0698e8f4b17d6454c71bf5212895ec055c578da0 diff --git a/.tmux/plugins/tmux-open b/.tmux/plugins/tmux-open new file mode 160000 index 0000000..763d0a8 --- /dev/null +++ b/.tmux/plugins/tmux-open @@ -0,0 +1 @@ +Subproject commit 763d0a852e6703ce0f5090a508330012a7e6788e diff --git a/.tmux/plugins/tmux-resurrect b/.tmux/plugins/tmux-resurrect new file mode 160000 index 0000000..cff343c --- /dev/null +++ b/.tmux/plugins/tmux-resurrect @@ -0,0 +1 @@ +Subproject commit cff343cf9e81983d3da0c8562b01616f12e8d548 From b480688740bf4b2f5a685aad291ef1a788d98d30 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 6 Mar 2025 20:06:41 -0800 Subject: [PATCH 2/2] Add k9s configuration and update setup --- k9s_config.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup | 7 ++++++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 k9s_config.yml diff --git a/k9s_config.yml b/k9s_config.yml new file mode 100644 index 0000000..a7e83aa --- /dev/null +++ b/k9s_config.yml @@ -0,0 +1,53 @@ +k9s: + refreshRate: 2 + maxConnRetry: 5 + enableMouse: true + headless: false + logoless: false + crumbsless: false + readOnly: false + noExitOnCtrlC: false + noIcons: false + skipLatestRevCheck: false + logger: + tail: 100 + buffer: 5000 + sinceSeconds: 300 + fullScreenLogs: false + textWrap: false + showTime: false + currentContext: do-sfo2-diana + currentCluster: do-sfo2-diana + clusters: + do-sfo2-diana: + namespace: + active: alpha + lockFavorites: false + favorites: + - alpha + - beta + - prod + - all + - default + view: + active: pods + featureGates: + nodeShell: false + shellPod: + image: busybox:1.35.0 + command: [] + args: [] + namespace: default + limits: + cpu: 100m + memory: 100Mi + labels: {} + portForwardAddress: localhost + thresholds: + cpu: + critical: 90 + warn: 70 + memory: + critical: 90 + warn: 70 + screenDumpDir: /tmp/k9s-screens-d_mcknight diff --git a/setup b/setup index eb3828e..1dee2f3 100644 --- a/setup +++ b/setup @@ -6,10 +6,15 @@ [ -f ~/.tmux.conf ] && mv ~/.tmux.conf ~/.tmux.conf.bak [ -f ~/.dircolors ] && mv ~/.dircolors ~/.dircolors.bak [ -d ~/.tmux ] && mv ~/.tmux ~/.tmux.bak - +[ -f ~/.config/k9s/config.yml ] && mv ~/.config/k9s/config.yml ~/.config/k9s/config.bak # Link dotfiles [ -e ~/.tmux.conf ] || ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf [ -e ~/.bashrc ] || ln -s ~/.dotfiles/.bashrc ~/.bashrc [ -e ~/.nanorc ] || ln -s ~/.dotfiles/.nanorc ~/.nanorc [ -e ~/.tmux ] || ln -s ~/.dotfiles/.tmux ~/.tmux [ -e ~/.dircolors ] || ln -s ~/.dotfiles/.dircolors ~/.dircolors + +# k9s only if directory exists +if [ -d ~/.config/k9s ]; then + [ -e ~/.config/k9s/config.yml ] || ln -s ~/.dotfiles/k9s_config.yml ~/.config/k9s/config.yml +fi