Running on Raspbian GNU/Linux 11 (bullseye)
I installed powerlevel10k shell theme for zsh, but my aliases don't seem to work (e.g. zsh: command not found: ll
) and I can't figure out why...
My .zshrc looks like this:
# 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'
The aliases are declared after the source
lines, so I think they're not being overwritten..
~/shelltools/powerlevel10k/powerlevel10k.zsh-theme
you are sourcing; iii) tell us what actually happens when you try to run an alias. Nothing? Are there error messages? What errors? iv) what happens if you define a new alias in the command line (e.g.alias foo="echo foo"
) does that work?