2025-01-26 20:15:50 -04:00
|
|
|
# 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 zsh)"
|
2025-01-26 20:18:15 -04:00
|
|
|
autoload -Uz promptinit
|
|
|
|
autoload -Uz compinit
|
|
|
|
promptinit
|
|
|
|
compinit
|
2025-01-26 20:20:54 -04:00
|
|
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
2025-01-26 20:15:50 -04:00
|
|
|
|
2025-01-26 21:28:30 -04:00
|
|
|
bindkey '^[[H' beginning-of-line
|
|
|
|
bindkey '^[[F' end-of-line
|
|
|
|
|
2025-01-26 20:15:50 -04:00
|
|
|
# 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://zsh-prompt-generator.site/
|
|
|
|
# On github: https://github.com/k-yokoishi/zsh-prompt-generator
|
|
|
|
PROMPT="[%n@%m %~]$ "
|
2025-01-26 21:28:30 -04:00
|
|
|
RPROMPT="%?:%h | %*"
|
2025-01-26 20:15:50 -04:00
|
|
|
|
|
|
|
# CLI programs
|
|
|
|
EDITOR=micro
|
|
|
|
DIFFPROG=difft
|