Skip to content

Instantly share code, notes, and snippets.

@Galacticai
Last active December 30, 2025 11:17
Show Gist options
  • Select an option

  • Save Galacticai/c3db80565bd866ca408776a0ae27f988 to your computer and use it in GitHub Desktop.

Select an option

Save Galacticai/c3db80565bd866ca408776a0ae27f988 to your computer and use it in GitHub Desktop.
Arch Linux terminal aliases

Requirements:

depending on which parts you copy

  • lsd
  • ranger
  • tree
  • pacman
  • yay
  • flatpak
  • git

Aliases

paste in ~/.zshrc or ~/.bashrc

alias l="lsd"
alias la="lsd -a"
alias ll="lsd -l"
alias lla="lsd -la"
alias lr="ranger ."
lt() { tree -C -L "${1:-2}" "${@:2}" | less; }

alias c="clear"

alias pac="sudo pacman"
alias i="pac -S"
alias u="pac -Sy"
alias U="pac -Syu"
alias r="pac -R"

alias yi="yay -S"
alias yu="yay -Sy"
alias yU="yay -Syu"
alias yr="yay -R"

alias fp="flatpak"
alias fpi="fp install"
alias fpu="fp update"
alias fpr="fp remove"

UPDATE() {
  echo "➡️ KDE themes/icons/... can't be updated here. This will update using pacman and flatpak"
  U
  fpu
}

alias g="git"
alias gr="g reset HEAD~"
alias gP="g push --force"
alias gsp="g stash pop"
alias gss="g stash save"
alias gsl="g stash list"
alias gsa="g stash apply"

Recommendations

better fonts

icons in ranger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment