update zsh and others

This commit is contained in:
reonokiy 2024-09-21 10:56:25 +08:00
parent e2a94521cc
commit 84cdd7dec4
Signed by: reonokiy
SSH key fingerprint: SHA256:2VjKpUxMIe0QYY3OVnOMuPiB0X5pvrIpJ+UiyFhxtq0
4 changed files with 17 additions and 1 deletions

View file

@ -8,3 +8,6 @@
signingkey = {{ .git.default.publicKey }}
name = {{ .git.default.name }}
email = {{ .git.default.email }}
[credential]
helper = cache --timeout 21600
helper = oauth

View file

@ -4,7 +4,7 @@ Current system:
- [x] Windows 11
- [x] Alma Linux 9 (WSL2)
- [ ] Arch Linux
- [x] Arch Linux
- [ ] Fedora
- [ ] Ubuntu

View file

@ -0,0 +1,2 @@
--enable-features=UseOzonePlatform
--ozone-platform=wayland

View file

@ -70,6 +70,7 @@ path+=("$HOME"'/.cargo/bin')
path+=('/user/local/bin')
# export to sub-processes (make it inherited by child processes)
export PATH
export GOPATH=$HOME/.go
# fpath
if [[ -d "/home/linuxbrew/.linuxbrew/share/zsh/site-functions" ]]; then
@ -87,6 +88,15 @@ if command -v brew &> /dev/null; then
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
# arch linux zsh extensions
if [[ -e "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]]; then
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
fi
if [[ -e "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]]; then
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
# micromamba
if command -v micromamba &> /dev/null; then
export MAMBA_EXE=$(which micromamba);
@ -208,5 +218,6 @@ alias i='ya ~/i'
alias ssh="ssh.exe"
{{- else -}}
# linux spec config
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
{{- end -}}
{{- end}}