Compare commits
5 Commits
b76a0787bf
...
ab111b9fb9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab111b9fb9 | ||
|
|
905e22a712 | ||
|
|
1930f98e22 | ||
|
|
4fa8591142 | ||
|
|
5549cae9d4 |
@@ -6,6 +6,16 @@ env_shell_expand = true
|
|||||||
_.file = ".secrets.yaml"
|
_.file = ".secrets.yaml"
|
||||||
SOPS_AGE_KEY_FILE = "$HOME/.config/sops/.age"
|
SOPS_AGE_KEY_FILE = "$HOME/.config/sops/.age"
|
||||||
TFENV_REMOTE = "https://hashicorp-releases.yandexcloud.net"
|
TFENV_REMOTE = "https://hashicorp-releases.yandexcloud.net"
|
||||||
|
K9S_FEATURE_GATE_NODE_SHELL = true
|
||||||
|
|
||||||
[shell_alias]
|
[shell_alias]
|
||||||
|
nvimc = "nvim ~/.config"
|
||||||
|
nvimm = "nvim ~/.config/mise/config.toml"
|
||||||
|
nvimn = "nvim ~/.config/nvim"
|
||||||
|
nvimz = "nvim ~/.config/zsh/.zshrc"
|
||||||
|
|
||||||
|
gh = "cd ~ && clear"
|
||||||
|
gw = "cd ~/work && clear"
|
||||||
|
gp = "cd ~/personal && clear"
|
||||||
|
|
||||||
ytr = "fabric-ai -p rate_content -g ru -s -y"
|
ytr = "fabric-ai -p rate_content -g ru -s -y"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ return {
|
|||||||
filetypes = {
|
filetypes = {
|
||||||
"yaml",
|
"yaml",
|
||||||
"yaml.docker-compose",
|
"yaml.docker-compose",
|
||||||
-- "yaml.gitlab",
|
"yaml.gitlab",
|
||||||
"yaml.helm-values",
|
"yaml.helm-values",
|
||||||
},
|
},
|
||||||
root_markers = {
|
root_markers = {
|
||||||
@@ -21,6 +21,9 @@ return {
|
|||||||
format = {
|
format = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
customTags = {
|
||||||
|
"!reference sequence",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,3 +43,6 @@ opt.splitbelow = true -- split horizontal window to the bottom
|
|||||||
|
|
||||||
-- turn off swapfile
|
-- turn off swapfile
|
||||||
opt.swapfile = false
|
opt.swapfile = false
|
||||||
|
|
||||||
|
-- set shell to zsh
|
||||||
|
opt.shell = "/bin/zsh -i"
|
||||||
|
|||||||
@@ -2,19 +2,19 @@
|
|||||||
return {
|
return {
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
-- "JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
},
|
-- },
|
||||||
config = function()
|
-- config = function()
|
||||||
-- import comment plugin safely
|
-- -- import comment plugin safely
|
||||||
local comment = require("Comment")
|
-- local comment = require("Comment")
|
||||||
|
--
|
||||||
local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
|
-- local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
|
||||||
|
--
|
||||||
-- enable comment
|
-- -- enable comment
|
||||||
comment.setup({
|
-- comment.setup({
|
||||||
-- for commenting tsx, jsx, svelte, html files
|
-- -- for commenting tsx, jsx, svelte, html files
|
||||||
pre_hook = ts_context_commentstring.create_pre_hook(),
|
-- pre_hook = ts_context_commentstring.create_pre_hook(),
|
||||||
})
|
-- })
|
||||||
end,
|
-- end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,5 +7,20 @@ return {
|
|||||||
-- your configuration comes here
|
-- your configuration comes here
|
||||||
-- or leave it empty to use the default settings
|
-- or leave it empty to use the default settings
|
||||||
-- refer to the configuration section below
|
-- refer to the configuration section below
|
||||||
}
|
search = {
|
||||||
|
command = "rg",
|
||||||
|
args = {
|
||||||
|
"--color=never",
|
||||||
|
"--no-heading",
|
||||||
|
"--with-filename",
|
||||||
|
"--line-number",
|
||||||
|
"--column",
|
||||||
|
"--hidden",
|
||||||
|
},
|
||||||
|
-- regex that will be used to match keywords.
|
||||||
|
-- don't replace the (KEYWORDS) placeholder
|
||||||
|
pattern = [[\b(KEYWORDS):]], -- ripgrep regex
|
||||||
|
-- pattern = [[\b(KEYWORDS)\b]], -- match without the extra colon. You'll likely get false positives
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
64
zsh/.zshrc
64
zsh/.zshrc
@@ -69,30 +69,44 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
# YandexCloud CLI completion
|
||||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
# NOTE: Versions checked from utility version output
|
||||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
source "$HOMEBREW_PREFIX/Caskroom/yandex-cloud-cli/$(yc --version | egrep -o "([0-9]{1,}\.)+[0-9]{1,}")/yandex-cloud-cli/completion.zsh.inc"
|
||||||
# For a full list of active aliases, run `alias`.
|
|
||||||
|
#compdef opencode
|
||||||
|
###-begin-opencode-completions-###
|
||||||
#
|
#
|
||||||
# Example aliases
|
# yargs command completion script
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
#
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# Installation: opencode completion >> ~/.zshrc
|
||||||
alias vi="nvim"
|
# or opencode completion >> ~/.zprofile on OSX.
|
||||||
alias vim="nvim"
|
#
|
||||||
alias vimdiff="nvim -d"
|
_opencode_yargs_completions()
|
||||||
alias ovim="/usr/bin/vim"
|
{
|
||||||
|
local reply
|
||||||
|
local si=$IFS
|
||||||
|
IFS=$'
|
||||||
|
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" opencode --get-yargs-completions "${words[@]}"))
|
||||||
|
IFS=$si
|
||||||
|
if [[ ${#reply} -gt 0 ]]; then
|
||||||
|
_describe 'values' reply
|
||||||
|
else
|
||||||
|
_default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
if [[ "'${zsh_eval_context[-1]}" == "loadautofunc" ]]; then
|
||||||
|
_opencode_yargs_completions "$@"
|
||||||
|
else
|
||||||
|
compdef _opencode_yargs_completions opencode
|
||||||
|
fi
|
||||||
|
###-end-opencode-completions-###
|
||||||
|
|
||||||
alias vimz="nvim ~/.config/zsh/.zshrc"
|
# Add Docker Desktop for Mac (docker)
|
||||||
alias vimn="nvim ~/.config/nvim"
|
export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin/"
|
||||||
|
|
||||||
alias gh="cd ~ && clear"
|
|
||||||
alias gw="cd ~/work && clear"
|
|
||||||
alias gp="cd ~/personal && clear"
|
|
||||||
|
|
||||||
# Functions
|
|
||||||
|
|
||||||
|
## Functions
|
||||||
#Generate strong password
|
#Generate strong password
|
||||||
pwg() {
|
function pwg() {
|
||||||
pwgen -cny -r \[\]\{\}\(\)\"\'\-\|\:\;\`\,\<\>\$\= 32 1
|
pwgen -cny -r \[\]\{\}\(\)\"\'\-\|\:\;\`\,\<\>\$\= 32 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,9 +120,7 @@ function y() {
|
|||||||
rm -f -- "$tmp"
|
rm -f -- "$tmp"
|
||||||
}
|
}
|
||||||
|
|
||||||
# YandexCloud CLI completion
|
#DuckDuckGo Search with w3m
|
||||||
# NOTE: Versions checked from utility version output
|
function ddgs(){
|
||||||
source "$HOMEBREW_PREFIX/Caskroom/yandex-cloud-cli/$(yc --version | egrep -o "([0-9]{1,}\.)+[0-9]{1,}")/yandex-cloud-cli/completion.zsh.inc"
|
w3m https://lite.duckduckgo.com/html/\?q\="$@"
|
||||||
|
}
|
||||||
# Add Docker Desktop for Mac (docker)
|
|
||||||
export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin/"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user