Skip to content

u/cradlemann

In this archive from Sep 2019 to Oct 2026

9
posts
18
comments
2
media
272
score
1 saved before deletion

My solution in /.bashrc|/.zshrc:

if command_exists pacman ; then
  alias p="$SUDO pacman"
  alias pql='pacman -Ql'
  alias pqs='pacman -Qs'
  alias pss='pacman -Ss'
  alias psu='p -Syu'
  alias pii='pacman -Sii'
  alias psi='p -S --needed'
  alias prs='p -Rs'
  if command_exists yay ; then
    alias yay='yay --aur --editmenu --builddir $PERS_DIR/bb'
    alias psuy='yay -Syua'
    alias pssy='yay -Ss'
    alias psiy='yay -Sa'
    alias piiy='yay -Sii'
  fi

  if command_exists paru ; then
    alias paru='paru --aur --fm vifm --removemake --clonedir $PERS_DIR/bb'
    alias psuy='paru -Syua'
    alias pssy='paru -Ss'
    alias psiy='paru -Sa'
    alias piiy='paru -Sii'
  fi

  paclist() {
    pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'
  }

  recovery-pacman() {
    pacman "$@"  \
           --log /dev/null   \
           --noscriptlet     \
           --dbonly          \
           --force           \
           --nodeps          \
           --needed
  }
fi

if command_exists apt ; then
  alias a="$SUDO apt"
  alias pql='dpkg-query -L'
  alias pqs='apt list --installed'
  alias pss='apt search'
  alias psd='a update'
  alias psy='a upgrade'
  alias psl='apt list --upgradable'
  alias psu='psd && sleep 2 && psl && sleep 2 && psy'
  alias psi='a install'
  alias prs='a remove'
  alias aar="$SUDO add-apt-repository"
fi

if command_exists yum ; then
  alias y="$SUDO yum"
  alias psu='yum upgrade'
  alias pss='yum search'
  alias psi='yum install'
  alias prs='yum remove'
fi
1 points

lsp-diagnose give me this output

Checking for Native JSON support: ERROR
Checking emacs version has `read-process-output-max': OK
Using company-capf: OK
Check emacs supports `read-process-output-max': OK
Check `read-process-output-max' default has been changed from 4k: OK
Byte compiled against Native JSON (recompile lsp-mode if failing when Native JSON available): ERROR
`gc-cons-threshold' increased?: OK

all packages was installed using use-package from scratch

5 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.