Compare commits
2 Commits
f950284763
...
8b55c92799
Author | SHA1 | Date | |
---|---|---|---|
|
8b55c92799 | ||
|
e530968eac |
@ -230,6 +230,9 @@ require'lspconfig'.yamlls.setup{
|
|||||||
["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml"
|
["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
yaml = {
|
||||||
|
keyOrdering = false
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -611,7 +614,7 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
|
|||||||
autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1
|
autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1
|
||||||
autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙'
|
autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙'
|
||||||
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
|
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
|
||||||
" autocmd BufWritePre * silent! undojoin | Neoformat prettier
|
autocmd BufWritePre * silent! undojoin | Neoformat prettier
|
||||||
|
|
||||||
" GoLang
|
" GoLang
|
||||||
autocmd BufRead *.go set noexpandtab
|
autocmd BufRead *.go set noexpandtab
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# shellcheck disable=2045,2086
|
||||||
|
|
||||||
function timestamp() {
|
function timestamp() {
|
||||||
echo "[+] $(date +'%F %T') [INFO] $*"
|
echo "[+] $(date +'%F %T') [INFO] $*"
|
||||||
@ -24,10 +25,6 @@ function install_neovim_module_for_python() {
|
|||||||
pip3 install neovim --pre --user --force
|
pip3 install neovim --pre --user --force
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_awscli() {
|
|
||||||
pip3 install awscli --pre --user --force
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_pyright() {
|
function install_pyright() {
|
||||||
# Install pyright
|
# Install pyright
|
||||||
sudo npm -g i pyright --force
|
sudo npm -g i pyright --force
|
||||||
@ -97,6 +94,21 @@ function install_azure_cli() {
|
|||||||
pip3 install azure-cli --user --pre --force
|
pip3 install azure-cli --user --pre --force
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install_awscli() {
|
||||||
|
pip3 install awscli --pre --user --force
|
||||||
|
}
|
||||||
|
|
||||||
|
function update_zsh() {
|
||||||
|
for i in $(ls $HOME/.config/zsh); do
|
||||||
|
FOLDER="$HOME/.config/zsh/$i"
|
||||||
|
git pull
|
||||||
|
cd "$FOLDER" || echo "Folder is not exists"
|
||||||
|
done
|
||||||
|
ZSHFOLDER="$HOME/.config/zsh/"
|
||||||
|
curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o "$ZSHFOLDER"/aws/aws.plugin.zsh
|
||||||
|
curl https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion -o "$ZSHFOLDER"/azure-cli/az.completion
|
||||||
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
command_start update_pip
|
command_start update_pip
|
||||||
command_start install_pyright
|
command_start install_pyright
|
||||||
@ -111,6 +123,7 @@ function main() {
|
|||||||
command_start install_black
|
command_start install_black
|
||||||
command_start install_ansible
|
command_start install_ansible
|
||||||
command_start install_meraki_ansible
|
command_start install_meraki_ansible
|
||||||
|
command_start update_zsh
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Loading…
Reference in New Issue
Block a user