![.zshrc 별칭은 powerlevel10k에서 작동하지 않습니다.](https://linux55.com/image/200236/.zshrc%20%EB%B3%84%EC%B9%AD%EC%9D%80%20powerlevel10k%EC%97%90%EC%84%9C%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
실행 대상Raspbian GNU/Linux 11 (bullseye)
설치했습니다전력 레벨 10kzsh용 쉘 테마가 있지만 별칭이 작동하지 않는 것 같고(예 zsh: command not found: ll
:) 이유를 모르겠습니다...
내 .zshrc는 다음과 같습니다.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source ~/shelltools/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source ~/shelltools/powerlevel10k/powerlevel10k.zsh-theme
source ~shelltools/powerlevel10k/powerlevel10k.zsh-theme
# git aliases
alias gca='git add .&&git commit -m '
alias gph='git push'
alias gpl='git pull'
alias gc='git checkout'
alias gcb='git checkout -b '
alias gcp='git checkout production'
alias gmp='git merge production'
alias gcd='git checkout develop'
alias gmd='git merge develop'
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
별칭은 줄 다음에 선언되므로 source
재정의되지 않은 것 같습니다.
답변1
궁극적으로 문제의 원인이 무엇인지 확실하지 않지만 zsh 및 powerlevel10k 테마를 다시 설치했습니다(수동 설치) 성공했다..