Lucas E M M. opinions

Searching for packages in openbsd

openbsd

Finally! I am using openbsd! It is quite interesting but somethings are different. I will need to post somethings to help me remember =]

Starting by package search:

pkg_info -aPqQ package | sort

where package is what you are looking for. Thanks for the tip Umgeher!

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Searching for packages in openbsd

All praise stash

git

Today I figured a pretty cool git command. Up to this day, sometimes I get a bit disorganized with the branches, and git stash came to save the day (or at least some working stamina).

Here is the procedure:

“Oh no! I forgot to change the branch before making changes”

git stash save "name of the mistake"

Now, moving to the correct branch

git checkout the-correct-branch

Recover the modifications

git stash pop

And, a nice command:

git stash list

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: All praise stash

Remap your keyboard!

config

Why? Well, because as an emacs user, you are probably tired of your pinky trip to ctrl in order to do the “chords”.

I would assume, hypothetical reader, that you have already tried changing caps for ctrl. Well that’s nice, however, let me introduce you the better idea (giving credit where is due, thanks for this Umgeher!).

It is a lot more comfortable and an easier transition to change shift->ctrl and caps->shift. The muscle memory for shift stays the same and ctrl is in a much more comfortable position. Here is xmodmap script to arrange that:

! making shift ctrl and caps shift

remove Lock = Caps_Lock
remove Shift = Shift_L
remove Control = Control_L
keysym Caps_Lock = Shift_L
keysym Shift_L = Control_L
keysym Control_L = Control_L
add Lock = Caps_Lock
add Shift = Shift_L
add Control = Control_L

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Remap your keyboard!