Andy's zshrc
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| plugins | ||
| .gitignore | ||
| .zshenv | ||
| .zshrc | ||
| AGENTS.md | ||
| aliases.zsh | ||
| bindings.zsh | ||
| dependencies.zsh | ||
| fzf.zsh | ||
| plugins.zsh | ||
| prompt.zsh | ||
| README.md | ||
| starship.toml | ||
Andy's zshrc
To use add the following to /etc/zshenv
if [[ -z "$XDG_CONFIG_HOME" ]]
then
export XDG_CONFIG_HOME="$HOME/.config"
fi
if [[ -d "$XDG_CONFIG_HOME" ]]
then
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
fi
Dependencies
On the first interactive startup on each host/OS, dependencies.zsh checks for the tools below and installs missing packages in one Homebrew or apt-get command. Later startups only check for a marker in $XDG_STATE_HOME/zsh, even if installation failed. To retry after fixing an issue or changing installed tools, remove $XDG_STATE_HOME/zsh/dependencies-${HOST}-${OSTYPE}.checked.
Manual installation (if preferred):
macOS
brew install eza zoxide bat fzf ripgrep fd starship neovim
Ubuntu / Debian
sudo apt-get install -y eza zoxide bat fzf ripgrep fd-find starship neovim
ln -s "$(command -v batcat)" ~/.local/bin/bat
ln -s "$(command -v fdfind)" ~/.local/bin/fd