wip
This commit is contained in:
27
.zshrc
27
.zshrc
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user