2024-09-18 13:03:01 -03:00
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2025-01-22 10:16:40 -04:00
|
|
|
# Required init for cli programs
|
|
|
|
# Do not install completions unless no working, check /usr/share/bash-completion
|
|
|
|
eval "$(zoxide init bash)"
|
|
|
|
|
2025-01-21 23:33:47 -04:00
|
|
|
# Set aliases
|
2025-01-22 12:03:08 -04:00
|
|
|
alias ls="eza --icons --long"
|
2025-01-21 23:33:47 -04:00
|
|
|
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"
|
2024-09-18 13:03:01 -03:00
|
|
|
|
|
|
|
# Helpful tool: https://bash-prompt-generator.org
|
|
|
|
# On github: https://github.com/Scriptim/bash-prompt-generator
|
|
|
|
PS1='[\u@\h \w]\$ '
|
2024-11-18 14:43:02 -04:00
|
|
|
|
2025-01-21 23:33:47 -04:00
|
|
|
# CLI programs
|
2025-01-20 20:16:31 -04:00
|
|
|
EDITOR=micro
|
2024-11-18 14:43:02 -04:00
|
|
|
DIFFPROG=difft
|