21 lines
701 B
Plaintext
21 lines
701 B
Plaintext
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
# Required init for cli programs
|
|
# Do not install completions unless no working, check /usr/share/bash-completion
|
|
eval "$(zoxide init bash)"
|
|
|
|
# Set aliases
|
|
alias ls="eza --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"
|
|
alias l="ls --ignore-glob '$([ -f .hidden ] && cat .hidden | tr '\n' '|')'"
|
|
|
|
|
|
# Helpful tool: https://bash-prompt-generator.org
|
|
# On github: https://github.com/Scriptim/bash-prompt-generator
|
|
PS1='[\u@\h \w]\$ '
|