2
0
This commit is contained in:
ai
2026-04-03 08:36:53 +00:00
commit 67c20e9dab
15 changed files with 648 additions and 0 deletions

53
.zshrc Normal file
View File

@@ -0,0 +1,53 @@
export CARGO_HOME="$HOME/.cargo"
export RUSTUP_HOME="$HOME/.rustup"
export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
if command -v tmux &>/dev/null && [ -z "$TMUX" ] && [ -z "$SSH_CONNECTION" ]; then
tmux new
fi
alias c="claude"
alias t="tmux"
alias v="vim"
alias ts="vim ~/.tmux.conf"
alias vs="vim ~/.vimrc"
alias zs="vim ~/.zshrc"
alias zr="exec $SHELL && . ~/.zshrc"
alias ll="ls -alh"
alias df="df -H"
zmodload zsh/complist
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
autoload -Uz compinit
compinit
bindkey -M menuselect '^n' down-line-or-history
bindkey -M menuselect '^p' up-line-or-history
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
setopt SHARE_HISTORY
setopt HIST_IGNORE_DUPS
case $OSTYPE in
linux*)
alias ls="ls -a --color=auto"
alias ll="ls -alh --color=auto"
alias u="sudo pacman -Syu --noconfirm"
fpath=(/usr/share/zsh/site-functions $fpath)
;;
esac
for p in /usr/share/zsh/plugins; do
[ -f "$p/zsh-autosuggestions/zsh-autosuggestions.zsh" ] && source "$p/zsh-autosuggestions/zsh-autosuggestions.zsh"
[ -f "$p/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && source "$p/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[ -f "$p/zsh-history-substring-search/zsh-history-substring-search.zsh" ] && source "$p/zsh-history-substring-search/zsh-history-substring-search.zsh"
done
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
chpwd() { ls }
for f in ~/.zsh/plugin/*.zsh; do source "$f"; done