This commit is contained in:
2026-07-29 16:45:19 +02:00
parent 10cc9e5c71
commit 49abca4710
20 changed files with 258 additions and 644 deletions

27
.zshrc
View File

@@ -118,3 +118,30 @@ source $ZSH/oh-my-zsh.sh
# To customize prompt, run `p10k configure` or edit ~/.config/zsh_custom/10-p10k.zsh.
[[ ! -f ~/.config/zsh_custom/10-p10k.zsh ]] || source ~/.config/zsh_custom/10-p10k.zsh
# Report the current working directory to kitty
autoload -Uz add-zsh-hook
_report_cwd_to_kitty() {
printf "\e]7;file://%s%s\a" "$HOST" "$PWD"
}
add-zsh-hook chpwd _report_cwd_to_kitty
# Run it once at startup to set the initial directory
_report_cwd_to_kitty
# GHCUP
path+=("$HOME/.ghcup/bin")
path+=("$HOME/.cabal/bin")
path+=("$HOME/.cargo/bin")
path+=("/opt/cuda/bin")
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
export PATH
bindkey -v
function vi-yank-xclip {
zle vi-yank
echo "$CUTBUFFER" | wl-copy
}
zle -N vi-yank-xclip
bindkey -M vicmd 'y' vi-yank-xclip