From bash to zsh and everywhere in between, show me yours and I’ll show you mines. Inspire others or get some feedback.

Simply copy & paste the output of alias in your terminal or add some comments to explain things for others.

Edit: Kbin users, click ‘More’ on a comment and use the fediverse link to read responses that have funky formatting

  • 小莱卡
    link
    18 months ago

    These are some pacman+fzf implementations from the arch wiki + a flatpak implementation i did with fzf(still needs some polish but it works).

    alias pacq=$‘pacman -Q | fzf’

    alias pacs=$‘pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S’

    alias pacr=$‘pacman -Qq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -Rns’

    alias flatr=$‘flatpak list | fzf --preview 'flatpak info 2} ' grep -Eo '[a-ZA-Z]+.[^ ]+' |awk '{print $1' | xargs -ro flatpak remove --delete-data’