python and zoxide alias

This commit is contained in:
2026-01-23 11:55:27 +08:00
parent b1d7af59a0
commit 1a949c4497
3 changed files with 5 additions and 2 deletions

View File

@@ -103,7 +103,5 @@ if is-at-least 4.2.0; then
alias -s ace="unace l" alias -s ace="unace l"
fi fi
alias py='python3'
# Make zsh know about hosts already accessed by SSH # Make zsh know about hosts already accessed by SSH
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })' zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'

View File

@@ -0,0 +1 @@
alias py='python3'

View File

@@ -0,0 +1,4 @@
if (( $+commands[zoxide] )); then
# eval "$(zoxide init --cmd ${ZOXIDE_CMD_OVERRIDE:-z} zsh)"
eval "$(zoxide init --cmd z zsh)"
fi