add zed config/ add linux ssh/git config

This commit is contained in:
reonokiy 2024-09-20 12:13:52 +08:00
parent 410484752c
commit 2a34219c63
Signed by: reonokiy
SSH key fingerprint: SHA256:2VjKpUxMIe0QYY3OVnOMuPiB0X5pvrIpJ+UiyFhxtq0
8 changed files with 1514 additions and 5 deletions

View file

@ -0,0 +1,10 @@
[gpg]
format = ssh
[gpg "ssh"]
program = "/opt/1Password/op-ssh-sign"
[commit]
gpgsign = true
[user]
signingkey = {{ .git.default.publicKey }}
name = {{ .git.default.name }}
email = {{ .git.default.email }}

View file

@ -0,0 +1,2 @@
Host *
IdentityAgent ~/.1password/agent.sock

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,10 @@
{
"ui_font_size": 16,
"buffer_font_size": 16,
"buffer_font_family": "FiraCode Nerd Font Mono",
"theme": {
"mode": "system",
"light": "Vitesse Light Soft",
"dark": "Vitesse Dark Soft"
}
}

File diff suppressed because it is too large Load diff

9
dot_ssh/config.tmpl Normal file
View file

@ -0,0 +1,9 @@
{{- if eq .chezmoi.os "windows" -}}
{{- template "dot_sshconfig_windows.tmpl" . -}}
{{- else if eq .chezmoi.os "linux" -}}
{{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}}
{{- template "dot_sshconfig_wsl.tmpl" . -}}
{{- else -}}
{{- template "dot_sshconfig_linux.tmpl" . -}}
{{- end -}}
{{- end -}}

View file

@ -78,10 +78,14 @@ fi
# homebrew config
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
if [[ -d "/home/linuxbrew/.linuxbrew/bin/brew" ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
if command -v brew &> /dev/null; then
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
# micromamba
if command -v micromamba &> /dev/null; then
@ -142,9 +146,9 @@ if command -v pyenv &> /dev/null; then
eval "$(pyenv init -)"
fi
# nix config
# nix config
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
. $HOME/.nix-profile/etc/profile.d/nix.sh;
. $HOME/.nix-profile/etc/profile.d/nix.sh;
fi
# editors