shell: starship + shared aliases for bash and zsh

- .chezmoidata/aliases.yaml: single source for shell-agnostic aliases
- fish 20-aliases.fish -> .tmpl rendered from that data (fish-only
  bits: clipboard detection, q function, interactive eza)
- dot_config/shell/aliases.sh.tmpl: same data for bash/zsh
- dot_bashrc/dot_zshrc: managed rc files with starship init
  (replaces unmanaged flyline/p10k prompts), guarded cargo/atuin/envman
This commit is contained in:
Prad Nukala committed 2026-08-10 14:09:40 -04:00
1 parent 352424c0c1
commit 8b67a8f8e8
9 files changed
+179 -71

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
# Shared aliases for bash and zsh — generated from .chezmoidata/aliases.yaml.
# fish renders the same data via fish/conf.d/20-aliases.fish. Edit the YAML,
# not this file. Sourced from ~/.bashrc and ~/.zshrc (interactive shells only).
{{- range .aliases }}
# {{ .section }}
{{- range .items }}
alias {{ .name }}='{{ .cmd }}'
{{- end }}
{{- end }}
# Clipboard
if command -v wl-copy >/dev/null 2>&1; then
alias cpy='wl-copy'
alias pst='wl-paste'
elif command -v pbcopy >/dev/null 2>&1; then
alias cpy='pbcopy'
alias pst='pbpaste'
fi
# q exits the shell; if this shell was spawned from yazi's own `q` bind
# (`shell "$SHELL" --block`), also tell that yazi to quit so exiting
# doesn't bounce back into the file manager.
q() {
if [ -n "$YAZI_ID" ] && command -v ya >/dev/null 2>&1; then
ya emit quit 2>/dev/null
fi
exit
}
# Typo guards + eza (this file is only sourced by interactive shells)
alias celar='clear'
alias claer='clear'
if command -v eza >/dev/null 2>&1; then
alias ls='eza --icons'
fi