setup/profiles_for_macos/.zshrc

32 lines
749 B
Bash
Raw Permalink Normal View History

2025-10-22 03:57:59 +00:00
## Shows you the current Python and the shell you are using
echo "Current Python: $(which python3)"
echo "Shell: $0"
echo ""
# Set the Default Prompt
if [ -n "${VIRTUAL_ENV_PROMPT}" ]; then
PS1='(venv) %(?.√.X) %B%F{green}%d%f%b
$ '
else
PS1='%(?.√.X) %B%F{green}%d%f%b
$ '
fi
# Aliases
# With the alias that follows, you can type `la` to get a nicely formatted
# listing of the contents of the current directory.
alias la="ls -lahF"
# Set set autocd and spell checking for zsh
setopt autocd
setopt correct
# The first part of this line autoloads a function called
# "compinit". The second part runs the function.
# It provides autocompletion for git commands.
autoload -U compinit && compinit
# Used by uv
. "$HOME/.local/bin/env"