Skip to content

Commit

Permalink
upd other settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed May 17, 2023
1 parent 22fc6cf commit 078dc4f
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 10 deletions.
64 changes: 56 additions & 8 deletions alacritty/.config/alacritty/alacritty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,65 @@ window:

# Font configuration
font:
# Point size
size: 13
# Point size of the font
size: 15

# Offset is the extra space around each character. offset.y can be thought of
# as modifying the linespacing, and offset.x as modifying the letter spacing.
offset:
x: 0
y: 0

glyph_offset:
x: 0
y: 0

#normal:
# family: SauceCodePro Nerd Font Mono
# style: Light
#bold:
# family: SauceCodePro Nerd Font Mono
# style: Medium
#italic:
# family: JetBrainsMono Nerd Font Mono
# style: ExtraLightItalic

#normal:
# family: DejaVuSansMono Nerd Font Mono
# style: Book
#bold:
# family: DejaVuSansMono Nerd Font Mono
# style: Regular
#italic:
# family: DejaVuSansMono Nerd Font Mono
# style: Italic
#normal:
# family: JetBrainsMono Nerd Font Mono
# style: ExtraLight
#bold:
# family: JetBrainsMono Nerd Font Mono
# style: Regular
#italic:
# family: JetBrainsMono Nerd Font Mono
# style: ExtraLightItalic
#normal:
# family: FiraCode Nerd Font Mono
# style: Light
#bold:
# family: FiraCode Nerd Font Mono
# style: Regular
#italic:
# family: FiraCode Nerd Font Mono
# style: Italic
normal:
family: DejaVuSansMono Nerd Font Mono
style: Book
family: Hasklug Nerd Font Mono
style: Light
bold:
family: DejaVuSansMono Nerd Font Mono
style: Bold
family: Hasklug Nerd Font Mono
style: Regular
italic:
family: DejaVuSansMono Nerd Font Mono
style: Italic
family: Hasklug Nerd Font Mono
style: Light Italic

env:
TERM: xterm-256color
Expand Down
18 changes: 18 additions & 0 deletions git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@
name = "Andrei Kvapil"
email = kvapss@gmail.com
signingkey = 6A895C2DB83B4289
[sendemail]
confirm = auto
smtpServer = smtp.gmail.com
smtpServerPort = 587
smtpEncryption = tls
smtpUser = kvapss@gmail.com
[include]
path = .gitconfig.local
[core]
autocrlf = false
safecrlf = true
[alias]
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
c = commit -s
[credential]
helper = cache --timeout=3600
#[url "git@gist.github.com:kvaps"]
Expand All @@ -15,8 +24,12 @@
insteadOf = https://github.com/kvaps
[url "git@github.com:wedos"]
insteadOf = https://github.com/wedos
[url "git@github.com:piraeusdatastore"]
insteadOf = https://github.com/piraeusdatastore
[url "git@github.com:ltsp"]
insteadOf = https://github.com/ltsp
[url "git@github.com:kubefarm"]
insteadOf = https://github.com/kubefarm
[url "git@github.com:opennebula"]
insteadOf = https://github.com/opennebula
[url "ssh://git@gitlab.wedos.org/"]
Expand All @@ -32,3 +45,8 @@
gpgSign = true
[init]
defaultBranch = master
[gpg]
program = /usr/local/MacGPG2/bin/gpg2
[alias]
# Usage: git signoff-rebase [base-commit]
signoff-rebase = "!EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && while test -f .git/rebase-merge/interactive; do git commit --amend --signoff --no-edit && git rebase --continue; done' -"
7 changes: 7 additions & 0 deletions vim/.vim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"diagnostic.messageTarget": "echo",
"diagnostic.checkCurrentLine": true,
"languageserver": {
"jsonnet": {
"command": "jsonnet-language-server",
"args": ["-t"],
"rootPatterns": [".git/", "jsonnetfile.json"],
"filetypes": ["jsonnet","libsonnet"]
},
"terraform": {
"command": "terraform-lsp",
"filetypes": [
Expand Down
35 changes: 33 additions & 2 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
)
autoload -U compinit && compinit

source $ZSH/oh-my-zsh.sh

Expand Down Expand Up @@ -211,6 +212,11 @@ POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION=''
POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='$P9K_KUBECONTEXT_NAME%6F${${:- $P9K_KUBECONTEXT_NAMESPACE}:# default}'
#POWERLEVEL9K_KUBECONTEXT_PREFIX='⎈ '


## for recordings only
#POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION='$P9K_KUBECONTEXT_NAMESPACE ⎈'
#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time kubecontext)

#POWERLEVEL9K_VCS_BACKGROUND='112'
#POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='214'
POWERLEVEL9K_VCS_FOREGROUND='148'
Expand Down Expand Up @@ -248,7 +254,7 @@ export PATH="$PATH:$GOBIN"
export LESS="-F -X $LESS"

# docker platform
export DOCKER_DEFAULT_PLATFORM=linux/x86_64
export DOCKER_DEFAULT_PLATFORM=linux/amd64

# kubectl-krew
export PATH="$PATH:${HOME}/.krew/bin"
Expand All @@ -274,22 +280,36 @@ alias onezone='kubectl exec -n opennebula `kubectl get pod -n opennebula -l role
alias oneimage='kubectl exec -n opennebula `kubectl get pod -n opennebula -l role=leader -o name` -c oned -- oneimage'
alias onedatastore='kubectl exec -n opennebula `kubectl get pod -n opennebula -l role=leader -o name` -c oned -- onedatastore'

alias linstor='kubectl exec -n linstor deploy/linstor-controller -ti -- linstor'
#alias linstor='kubectl exec -n linstor deploy/linstor-controller -ti -- linstor'
alias linstor='kubectl linstor'
alias neat='kubectl neat'
alias krew='kubectl krew'

alias skopeo='skopeo --override-os linux --override-arch amd64'
# OpenNebula
export PATH=$PATH:${HOME}/.gem/ruby/2.6.0/bin:${HOME}/.gem/ruby/2.7.0/bin
export ONE_XMLRPC=https://opennebula.wedos.cloud/RPC2
# OpenStack
. ~/.a-kvapil-openrc

# Homebrew binaries
export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/Cellar/grep/3.7/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/diffutils/bin:$PATH"
export PATH="/opt/homebrew/opt/util-linux/bin:$PATH"

alias cal="LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 /opt/homebrew/opt/util-linux/bin/cal -m"

# Kubebuilder
export PATH=$PATH:/usr/local/kubebuilder/bin

# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"

# ibus-typing-booster
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
Expand All @@ -312,3 +332,14 @@ complete -o nospace -C /usr/local/bin/tk tk

# Disable dock icon bouncing
printf "\e[?1042l"


# Flant integration
export SSH_ASKPASS=/usr/local/bin/ssh-askpass
launchctl setenv SSH_ASKPASS $SSH_ASKPASS
SSH_ENV="/tmp/.ssh_environment_added"
env_display="`/bin/launchctl getenv DISPLAY`"
if [[ "x${env_display}" == "x" ]]; then
/bin/launchctl setenv DISPLAY :0
fi
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"

0 comments on commit 078dc4f

Please sign in to comment.