26 lines
734 B
Plaintext
26 lines
734 B
Plaintext
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
# Set up terminal variables and scripts
|
|
eval "$(zoxide init bash)"
|
|
eval "$(packwiz completion bash)"
|
|
eval "$(chezmoi completion bash)"
|
|
eval "$(gh completion --shell bash)"
|
|
eval "$(rbw gen-completions bash)"
|
|
|
|
# Set aliases
|
|
alias ls="exa --icons --long"
|
|
alias grep="ugrep"
|
|
alias cd="z"
|
|
alias cat="bat -p"
|
|
alias update-mirrors="rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist; rate-mirrors chaotic-aur | sudo tee /etc/pacman.d/chaotic-mirrorlist"
|
|
alias update="paru; paru -c"
|
|
|
|
# Helpful tool: https://bash-prompt-generator.org
|
|
# On github: https://github.com/Scriptim/bash-prompt-generator
|
|
PS1='[\u@\h \w]\$ '
|
|
|
|
# CLI programs
|
|
EDITOR=micro
|
|
DIFFPROG=difft
|