Skip to content

Commit

Permalink
bulk updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Jan 28, 2025
1 parent 6530359 commit 82cd74a
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 10 deletions.
3 changes: 3 additions & 0 deletions roles/k9s/files/aliases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# $XDG_CONFIG_HOME/k9s/aliases.yaml
aliases:
dep: apps/v1/deployments
File renamed without changes.
3 changes: 2 additions & 1 deletion roles/k9s/files/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ k9s:
# Toggles reactive UI. This option provide for watching on disk artifacts changes and update the UI live Defaults to false.
reactive: true
# By default all contexts wil use the dracula skin unless explicitly overridden in the context config file.
skin: skin # => assumes the file skins/dracula.yaml is present in the $XDG_DATA_HOME/k9s/skins directory
skin: catppuccin_mocha # => assumes the file skins/dracula.yaml is present in the $XDG_DATA_HOME/k9s/skins directory
# Allows to set certain views default fullscreen mode. (yaml, helm history, describe, value_extender, details, logs) Default false
defaultsToFullScreen: false
# Toggles icons display as not all terminal support these chars.
Expand Down Expand Up @@ -60,3 +60,4 @@ k9s:
memory: 100Mi
# Enable TTY
tty: true

36 changes: 36 additions & 0 deletions roles/k9s/files/plugins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
plugins:

# View user-supplied values when the helm chart was created
helm-values:
shortCut: v
confirm: false
description: Values
scopes:
- helm
command: sh
background: false
args:
- -c
- "helm get values $COL-NAME -n $NAMESPACE --kube-context $CONTEXT | less -K"

# Use HolmesGPT to ask questions
holmesgpt:
shortCut: Shift-H
description: Ask HolmesGPT
scopes:
- all
command: bash
background: false
confirm: false
args:
- -c
- |
holmes ask "why is $NAME of $RESOURCE_NAME in -n $NAMESPACE not working as expected"
echo "Press 'q' to exit"
while : ; do
read -n 1 k <&1
if [[ $k = q ]] ; then
break
fi
done
18 changes: 12 additions & 6 deletions roles/k9s/tasks/MacOSX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
name: k9s
state: present

- name: "k9s | Copy config"
- name: "K9s | Copy config"
ansible.builtin.copy:
dest: "{{ ansible_user_dir }}/Library/Application Support/k9s/config.yaml"
src: "config.yaml"
dest: "{{ ansible_user_dir }}/Library/Application Support/k9s/{{ item }}"
src: "{{ item }}"
mode: "0644"
loop:
- config.yaml
- plugins.yaml
- aliases.yaml

- name: "k9s | Copy skin config"
- name: "K9s | Copy skin config"
ansible.builtin.copy:
dest: "{{ ansible_user_dir }}/Library/Application Support/k9s/skins/skin.yaml"
src: "skin.yaml"
dest: "{{ ansible_user_dir }}/Library/Application Support/k9s/skins/{{ item }}"
src: "{{ item }}"
mode: "0644"
loop:
- catppuccin_mocha.yaml
7 changes: 7 additions & 0 deletions roles/neovim/files/lua/plugins/distant.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
return {
'chipsenkbeil/distant.nvim',
branch = 'v0.3',
config = function()
require('distant'):setup()
end
}
4 changes: 2 additions & 2 deletions roles/tmux/files/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set -g renumber-windows on # Re-index windows when a window is closed
set -g history-limit 1000000 # Set history limit to 1000000
set -g mode-keys vi # Set vi mode
set -g status-position bottom # Set status bar to top
set -g pane-active-border-style 'fg=magenta,bg=default'
set -g pane-border-style 'fg=brightblack,bg=default'
# set -g pane-active-border-style 'fg=magenta,bg=default'
# set -g pane-border-style 'fg=brightblack,bg=default'
set -g status-interval 1

bind-key -n Home send Escape "OH" # Fix Home Key
Expand Down
11 changes: 10 additions & 1 deletion roles/zsh/files/.zshrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
is_ssh_session() {
[[ -n "$SSH_CONNECTION" || -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]
}

if is_ssh_session; then
# REASON: When sshing via ghostty, the remote terminal borks,
# so we need to set TERM to xterm-256color
export TERM=xterm-256color
fi

# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
Expand Down

0 comments on commit 82cd74a

Please sign in to comment.