Skip to content

22 comments

Hey the capitalization matters for data sizes. kb (lowercase b) is kilobit whereas kB (capital B) is kilobyte. You probably already know the difference since you're writing aur helpers, but for the peanut gallery: theres 8 kb in a kB.

25 points

But they capitalised the 'k'...? Still incorrect, though.

7 points

The SI prefix for kilo is lowercase k. Uppercase K is the symbol for the unit kelvin. Beyond kilo (mega, giga, tera, etc.) the prefix should be uppercase.

5 points

Technically, yes. I wouldn't have said anything for that though because there's no ambiguity between kB and KB like there is between kb and kB.

3 points

You are right - went unnoticed. Thanks for correcting me!

For the record: this bash script has 5.6KiB (kilobytes). :)

3 points

Oh no, you've done it again :-D. KiB is kibibyte, not kilobyte (though colloquially kibibytes are often referred to as kilobytes)

7 points

nice work ...why would you put fi ; } on the same line with last condition command? i mean it hurts me to read xD jk

6 points

I guess it came down to style - I'm writing a lot of Python utilities recently, so it looked more natural to me, hehe.

2 points

Here's the list of available options if anyone's interested:

usage: aur {option} [package] [arg]

options:
  -S, --sync           install selected package from AUR
  -Su, --update        update installed packages from AUR
  -Sy, --refresh       check for new package versions in AUR
  -Sw, --download      clone repository files from AUR only
  -Ss, --search        search for packages matching name
  -Sc, -Scc, --clean   remove uninstalled packages
  -R, --remove         remove a package and delete files
  -Q, --query          check local installed packages
  -F, --find           find and list packages in AUR
  -w, --web            open AUR package page on web browser
4 points

What prompted you to write this? What benefit might it serve over yay? Thanks!

9 points

I developed a bunch of small utilities that go along my common Terminal usage over time, then I started uploading them to GitHub for personal usage - so no reason whatsoever behind checking what I could do on my own, in pure bash code. I also wanted to keep the same parameters from pacman, for convenience, of course.

I don't believe it has any meaningful benefits over yay (or other AUR helpers for that matter), besides the extra parameters I included (-Ss/--search, -Q/--query, -F/--find, -w/--web). You might find those useful too - so you can extract the code from the script and use it on your own, in a separate file, if you already have your own wrapper. :)

9 points

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.