update dotfiles

Signed-off-by: d0zingcat <leewtang@gmail.com>
This commit is contained in:
d0zingcat
2024-05-09 16:17:56 +08:00
parent 55e9c49c2b
commit 6afbbe8b83
3 changed files with 36 additions and 5 deletions

1
.zshrc
View File

@@ -19,6 +19,7 @@ export MANPAGER="sh -c \"col -b | vim -c 'set ft=man ts=8 nomod nolist nonu' \
-c 'nnoremap <Space> <C-f>' \
-c 'noremap q :quit<CR>' -\""
export KUBECONFIG=$(echo `ls ~/.kube/*config*` | sed 's/ /:/g')
export HELM_CACHE_HOME=$HOME/.cache/helm
export FZF_DEFAULT_OPTS="--height=50% --layout=reverse"
export GPG_TTY=$(tty)

View File

@@ -28,13 +28,13 @@ local servers = {
'/*swagger.yml',
},
Kubernetes = {
'/*ingress.yaml',
'/*deployment.yaml',
'/*statefulset.yaml',
'/*configmap.yaml',
'/*ing.yaml',
'/*deploy.yaml',
'/*sts.yaml',
'/*cm.yaml',
'/*secret.yaml',
'/*kustomization.yaml',
'/*service.yaml',
'/*svc.yaml',
},
--['https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.18.0-standalone-strict/all.json'] = '/*.k8s.yaml',
},

View File

@@ -1,4 +1,5 @@
local wezterm = require('wezterm')
local act = wezterm.action
return {
default_cwd = wezterm.home_dir .. '/work',
font_size = 14,
@@ -49,7 +50,36 @@ return {
keys = {
--{ key = 'l', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|DOMAINS' } }) },
--{ key = 's', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|WORKSPACES' } }) },
{ key = 'e', mods = 'CMD', action = wezterm.action({ EmitEvent = 'window-visible-text' }) },
{ key = 'l', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'DOMAINS' } }) },
{ key = 'w', mods = 'CMD', action = wezterm.action({ CloseCurrentPane = { confirm = false } }) },
{ key = 'd', mods = 'CMD', action = wezterm.action({ SplitHorizontal = { domain = 'CurrentPaneDomain' } }) },
{
key = 'd',
mods = 'CMD|SHIFT',
action = wezterm.action({ SplitVertical = { domain = 'CurrentPaneDomain' } }),
},
{
key = '[',
mods = 'CMD',
action = wezterm.action({ ActivatePaneDirection = 'Next' }),
},
{
key = ']',
mods = 'CMD',
action = wezterm.action({ ActivatePaneDirection = 'Prev' }),
},
{
key = '>',
mods = 'CMD|SHIFT',
action = wezterm.action.MoveTabRelative(1),
},
{
key = '<',
mods = 'CMD|SHIFT',
action = wezterm.action.MoveTabRelative(-1),
},
{ key = 'Enter', mods = 'CMD', action = 'ToggleFullScreen' },
},
-- hyperlink_rules = {
-- {