Skip to content

u/algmyr

In this archive from Jan 2019 to Jun 2021

1
posts
15
comments
1
media
788
score

Consider actually providing the outputs that people ask for so that they can have a look at them to see if anything seems off. You probably did not miss anything, but in the off-chance you did you should share stuff anyway. It's nice if people trying to help don't need to debug blindly.

10 points

I don't run the commands constantly, like I would with ls/ll/cd and similar. And there are a bunch of things that gets lost when trying to force really short aliases.

  • You are losing mnemonics that I like (sensible common prefix, sensible suffix).
  • You are losing extensibility, e.g. the ability to easily expand into more commands in the same family later on, because 2 characters really invite collisions.
  • Similarly, you are also prone to shadow actual programs on your system, e.g. pr.

The thing that started me adding aliases in the first place was my pacrm. I added that for consistency reasons, so that I don't have to remember/mess up the flags whenever I remove something. Such consistency (or removing complexity) is imo a much stronger case for aliases than just having short commands. Especially if it's something you don't type constantly.

1 points

I know how it could break, I know how to fix it. I also like to think I know to be careful enough to not break things. What's a calculated risk between friends? ;)

1 points

If used without any care, yeah. Good to have the risks stated if anyone for some reason would try to pick something up from my post, thanks.

I'm aware of how it can break things, I only use it sparingly when I can't be bothered to do a full upgrade to install one new thing (according to my history, once or twice last year). For sure, I'm careful when doing so. And I'm not intending to blame anyone else if I end up breaking my stuff. :)

(Also, if you actually end up breaking stuff like in that story, it's not hard to fix it through the arch iso.)

3 points

I do have some aliases, but I never bothered with super short ones. I don't use the package manager nearly enough to warrant it, for me it's more important to just have some sensible and short enough names

alias pacin="sudo pacman -S"   # install
alias pacsy="sudo pacman -Sy"  # sync
alias pacup="sudo pacman -Syu" # update
alias pacrm="sudo pacman -Rns" # remove
12 points

autostart should work (haven't used it myself, but articles about cinnamon covers them). IIRC there is also a startup applications part in the cinnamon settings that might be useful to you.

If putting your commands before the exec line in the .xinitrc just doesn't work, there is also the super hacky option of spawning a subshell with a delay in the .xinitrc. I'm not recommending this avenue, but it's a silly option

(sleep 1; firstthing & secondthing & thirdthing & ...)
1 points

I know the feeling. Even more so with scripts.

Every time I need to do something that's just mind numbing that I might end up writing a script just for my own sanity, even if it takes more time than the initial task would.

Most of the time I think (and hope) that it's time well spent because of repeated use. But even if it isn't, just keeping my sanity is worth it...

4 points

That's not the selling point of vim/emacs. The selling point (for me at least) is that they are fundamentally powerful text editors.

If you want to use vim/emacs as an IDE then yes you'll have to configure stuff, although even that has become far easier with the advent of LSPs.

Had you complained about learning curve and time spent learning the editor I would have had no complaints. For some people investing that kind of time for learning doesn't make sense. But if you spend a lot of time (or make a living from) editing text or code it makes sense to consider your options.

I can say for sure I'm very happy I picked vim up a bunch of years ago, for me it makes editing a lot less of a chore (although YMMV). Learning editing in vim doesn't lock you down to using vim either, most editors/IDEs have pretty good vim plugins, so you can get some of the editing niceness while still retaining whatever you need from an IDE.

14 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.