1
0
raylu 2 жил өмнө
parent
commit
382bfe180a

+ 1 - 0
config/jj/config.toml

@@ -38,6 +38,7 @@ concat(
   diff.git(),
 )
 '''
+git_push_bookmark = '"raylu/push-" ++ change_id.short()'
 
 [template-aliases]
 'format_short_signature(signature)' = 'coalesce(signature.email().local(), email_placeholder)'

+ 1 - 1
config/kitty/kitty.conf

@@ -23,7 +23,7 @@ bold_italic_font auto
 #:     italic_font      Operator Mono Book Italic
 #:     bold_italic_font Operator Mono Medium Italic
 
-font_size 12.0
+font_size 14.0
 
 #: Font size (in pts)
 

+ 6 - 0
gitconfig

@@ -113,3 +113,9 @@
 
 [init]
 	defaultBranch = main
+
+[filter "lfs"]
+	required = true
+	clean = git-lfs clean -- %f
+	smudge = git-lfs smudge -- %f
+	process = git-lfs filter-process

+ 1 - 1
ssh/allowed_signers

@@ -1 +1 @@
-90059+raylu@users.noreply.github.com namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMQyY8qhakFYLJY4kEXuWMclyBCIz0uzvMEEhB7o+czr
+raylu@benchling.com namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMQyY8qhakFYLJY4kEXuWMclyBCIz0uzvMEEhB7o+czr

+ 22 - 0
ssh/config

@@ -4,3 +4,25 @@ ControlMaster auto
 ControlPath ~/.ssh/%r@%h:%p
 ControlPersist 5
 ServerAliveInterval 180
+
+
+Host dev
+    HostName localhost
+    ForwardAgent yes
+    User aurelia
+    Port 10022
+    RequestTTY yes
+    LocalForward 5000 local.bnch.us:5000
+    LocalForward 5002 local.bnch.us:5002
+    RemoteCommand cd /src; exec zsh
+    StrictHostKeyChecking no
+    UserKnownHostsFile /dev/null
+    XAuthLocation /opt/X11/bin/xauth
+    ForwardX11 yes
+    ForwardX11Timeout 2147423s
+
+Host localhost
+    ForwardAgent yes
+    StrictHostKeyChecking no
+    PasswordAuthentication no
+    UserKnownHostsFile /dev/null

+ 24 - 3
zshrc

@@ -55,7 +55,7 @@ zle -N self-insert url-quote-magic
 
 source $HOME/.zsh_fast_syntax_highlighting/fast-syntax-highlighting.plugin.zsh
 
-export EDITOR=vi
+export EDITOR=nvim
 export GREP_COLORS='ms=01;36:mc=01;31:sl=:cx=:fn=35:ln=33:bn=33:se=01;34'
 
 if [ -x /opt/homebrew/bin/eza ]; then
@@ -91,12 +91,14 @@ alias hgw='hg diff --change .'
 alias class='xprop -notype WM_CLASS'
 alias fx='FX_NO_MOUSE=1 FX_COLLAPSED=1 FX_SHOW_SIZE=1 fx'
 alias tree='tree -AvL 10'
-alias vi='vi -p'
-alias vil='vi *(.om[1])'
+alias vi='nvim -p'
+alias vil='nvim *(.om[1])'
 alias find='gfind'
 alias sudovi="sudo vi -N -u $HOME/.vimrc"
 alias shrug="echo -n '¯\\(°_o)/¯' | pbcopy"
 alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome'
+alias k8sctl='kubectl --kubeconfig ~/src/infra/docs/kubeconfig/ops.yaml'
+alias helm='helm --kubeconfig ~/src/infra/docs/kubeconfig/ops.yaml'
 function https() {
 	openssl s_client -connect $1:443 -servername $1 < /dev/null | \
 	openssl x509 -noout -text -certopt no_header,no_version,no_serial,no_signame,no_pubkey,no_sigdump
@@ -112,6 +114,8 @@ function pdf() {
 	atril "$*" &> /dev/null &!
 }
 
+source $HOME/src/aurelia/packages/benchling-dev-utilities/dev-completion.zsh
+
 if [ -d /usr/lib/cargo/bin ]; then
 	PATH=/usr/lib/cargo/bin:$PATH
 	if [ -d /usr/lib/cargo/bin/coreutils ]; then
@@ -264,4 +268,21 @@ if builtin which fzf > /dev/null; then
 	bindkey '^S' fzf-rg-widget
 fi
 
+export NVM_DIR="$HOME/.nvm"
+NODE_VERSION=$(cat "$NVM_DIR/alias/default")
+source "$NVM_DIR/nvm.sh" --no-use
+export PATH="$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH"
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # this loads nvm bash_completion
+
+#eval "$(pyenv init --path --no-rehash)"
+#eval "$(pyenv virtualenv-init - | gsed s/precmd/precwd/g)"
+#export PATH="/Users/raylu/.local/bin:$PATH"
+eval "$(mise activate zsh)"
+
+export KUBECONFIG="${HOME}/.kube/config:${INFRA_DIR:-${HOME}/infra}/docs/kubeconfig/ops.yaml"
+source <(kubectl completion zsh 2> /dev/null)
+source <(helm completion zsh 2> /dev/null)
+
+ulimit -S -n 10240
+
 stty stop undef