Compare commits
No commits in common. "5b7d43aaedc78a1891de58d84a7049f28f64fbb1" and "981de3864484dd2ba055c6ae366a36576ff7e7b0" have entirely different histories.
5b7d43aaed
...
981de38644
7 changed files with 10 additions and 76 deletions
|
@ -1,36 +0,0 @@
|
|||
#!/bin/zsh
|
||||
|
||||
set -e
|
||||
|
||||
trap 'echo {} ; exit 0' ERR
|
||||
|
||||
add() {
|
||||
gopass insert -f docker/$serverurl <<END
|
||||
$secret
|
||||
login: $login
|
||||
END
|
||||
}
|
||||
|
||||
case $1 in
|
||||
get)
|
||||
read serverurl || true
|
||||
[[ -n $serverurl ]]
|
||||
pass="$(gopass show --password docker/$serverurl)"
|
||||
login="$(gopass show --password docker/$serverurl login)"
|
||||
jo serverurl=dhub.corp.metrans.cz username=$login secret=$pass
|
||||
exit ;;
|
||||
store)
|
||||
jq '.username+"|"+.secret+"|"+.serverurl' | IFS='|' read login secret serverurl
|
||||
add
|
||||
exit ;;
|
||||
erase)
|
||||
read serverurl
|
||||
[[ -z $serverurl ]] && exit 1
|
||||
gopass delete -f docker/$serverurl
|
||||
exit ;;
|
||||
list)
|
||||
gopass ls --flat -s docker | jq -R | jq -s
|
||||
exit ;;
|
||||
esac
|
||||
|
||||
echo "get|list|store|erase"
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"credHelpers": {
|
||||
"dhub.corp.metrans.cz": "gopass"
|
||||
}
|
||||
}
|
|
@ -131,7 +131,7 @@ end
|
|||
---@param bg ?color
|
||||
---@param styles style[]
|
||||
function M:hl(group, fg, bg, styles, opts)
|
||||
local o = opts or { force = true }
|
||||
local o = opts or {};
|
||||
|
||||
if fg ~= nil
|
||||
then
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
local M = {
|
||||
'gruvbox-community/gruvbox',
|
||||
commit = 'f150aa7',
|
||||
lazy = false,
|
||||
priority = 999,
|
||||
}
|
||||
|
@ -182,31 +183,8 @@ function M.config()
|
|||
gr:hl('Strikethrough', nil, nil, { 'strikethrough' }, {})
|
||||
gr:hl('Underlined', nil, nil, { 'underline' }, {})
|
||||
|
||||
gr:hl('@text.uri', 'bright_blue', nil, { 'underline' }, {})
|
||||
gr:hl('@text.emphasis', nil, nil, { 'italic' }, {})
|
||||
|
||||
link('DiagnosticError', 'GruvboxRed')
|
||||
link('DiagnosticWarn', 'GruvboxYellow')
|
||||
link('DiagnosticInfo', 'GruvboxBlue')
|
||||
link('DiagnosticHint', 'GruvboxAqua')
|
||||
link('DiagnosticOk', 'GruvboxGreen')
|
||||
link('RedrawDebugClear', 'GruvboxAqua')
|
||||
link('RedrawDebugComposed', 'GruvboxGreen')
|
||||
link('RedrawDebugRecompose', 'GruvboxRed')
|
||||
link('DiagnosticFloatingError', 'DiagnosticError')
|
||||
link('DiagnosticFloatingWarn', 'DiagnosticWarn')
|
||||
link('DiagnosticFloatingInfo', 'DiagnosticInfo')
|
||||
link('DiagnosticFloatingHint', 'DiagnosticHint')
|
||||
link('DiagnosticFloatingOk', 'DiagnosticOk')
|
||||
link('DiagnosticUnderlineOk', 'GruvboxAquaUnderline')
|
||||
link('DiagnosticUnderlineError', 'GruvboxRedUnderline')
|
||||
link('DiagnosticUnderlineWarn', 'GruvboxYellowUnderline')
|
||||
link('DiagnosticUnderlineInfo', 'GruvboxBlueUnderline')
|
||||
link('DiagnosticUnderlineHint', 'GruvboxAquaUnderline')
|
||||
|
||||
gr:hl('DiagnosticDeprecated', nil, nil, { 'strikethrough' }, { sp = 'red' })
|
||||
|
||||
gr:hl('NormalFloat', 'light0_hard', 'dark1', {}, nil)
|
||||
gr:hl('@text.uri', 'bright_blue', nil, {'underline'}, {})
|
||||
gr:hl('@text.emphasis', nil, nil, {'italic'}, {})
|
||||
|
||||
-- gr:hl('GitSignsAddLine', nil, 'faded_green', {})
|
||||
-- vim.fn.sign_define('GitSignsAdd', { text = '│', texthl = 'GitSignsAdd', linehl = 'GitSignsAddLine', culhl='CursorLine' })
|
||||
|
|
|
@ -190,11 +190,11 @@ local function on_attach(args) -- {{{
|
|||
display_automatically = true,
|
||||
silent = true,
|
||||
keymaps = {
|
||||
next_signature = '<M-j>',
|
||||
previous_signature = '<M-k>',
|
||||
next_parameter = '<M-l>',
|
||||
previous_parameter = '<M-h>',
|
||||
close_signature = '<M-y>',
|
||||
next_signature = '<C-j>',
|
||||
previous_signature = '<C-k>',
|
||||
next_parameter = '<C-l>',
|
||||
previous_parameter = '<C-h>',
|
||||
close_signature = '',
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
@ -44,6 +44,3 @@ alias podr='podman run -it --rm'
|
|||
alias podrs='podman run -it --rm --entrypoint /bin/sh'
|
||||
|
||||
alias kubegen='kubectl create --dry-run=client -oyaml'
|
||||
alias k=kubectl
|
||||
alias kg='kubectl get'
|
||||
alias kctx='kubectl config use-context'
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
# Blue current directory.
|
||||
typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue
|
||||
|
||||
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|k9s|flux|trivy'
|
||||
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|k9s|flux'
|
||||
|
||||
# Context format when root: user@host. The first part white, the rest grey.
|
||||
typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f"
|
||||
|
|
Loading…
Add table
Reference in a new issue