- 42 Posts
- 151 Comments
I’ve already aliased
gl
for git log with my flags, but have been too lazy to add more aliases.
Oh. I did not know that. Gonna try that right now.
jq
is indispensable.
zoxide
. It’scd
but better. It remembers which directories you’ve navigated to, and fuzzy finds them.So instead of typing:
cd /really/long/path/to/sime/dir
You can type:
zoxide dir
And it’ll take you right to the directory.
I’ve got it aliased to
zd
so I type:zd dir
And I’m there.
My Brother in Brother. Welcome. You purchased the dullest printer. It is glorious
harsh3466@lemmy.mltoHacker News@lemmy.bestiver.se•Cops say criminals use a Google Pixel with GrapheneOS – I say that's freedomEnglish23·10 days agoI guess I’m a criminal?
harsh3466@lemmy.mlOPto Linux@lemmy.ml•Question About Bash Command Grouping Behavior in Script vs CLI1·11 days agoThank you for the link!
I do understand the logic and the difference between
;
,&&
, and `||. What was confusing me was the command grouping and my misunderstanding of the curly brace grouping rule that the command list has to END with a semicolon. @SheeEttin@lemmy.zip pointed out to me with the link in the comment they left.I had read that same link and misunderstood it. On second read I got it, and see now why my script is working, as the newlines serve the same purpose as the semicolon, so the curly braced groups are terminated correctly.
harsh3466@lemmy.mlOPto Linux@lemmy.ml•Question About Bash Command Grouping Behavior in Script vs CLI2·11 days agoMy environment is just my homelab. Ubuntu server on my server, Arch (btw) on my laptop. So I could go with any language , but right now I’m choosing Bash. I know stuff I’m doing would probably be easier in a different language, and maybe I’m a glutton for punishment. I just want to get really good with Bash.
The logic is Bash is gonna be available on just about any computing environment I encounter (linux especially, but even Windows with WSL and zsh on macOS (which I know is different, but still very similar). But really, I am just enjoying the hell out of learning and scripting with Bash. I’ll move on to Python or something someday.
harsh3466@lemmy.mlOPto Linux@lemmy.ml•Question About Bash Command Grouping Behavior in Script vs CLI1·11 days agoAh! I misinterpreted what I read! I found that exact same reference link when looking into this and I misinterpreted this:
The semicolon (or newline) following
list
is requiredto mean that it required the semicolon as the command separator. That explains why my script works. The newline closes each group, and the other operators are allowed, the list just needs to be closed. Thank you!
harsh3466@lemmy.mlto Books@lemmy.world•What book(s) are you currently reading or listening to? July 224·11 days agoNext on my list!
I’m glad you enjoyed them. I couldn’t even finish them.
harsh3466@lemmy.mlto Linux@lemmy.ml•My first installation of linux on a 5 year old laptop2·12 days ago+1
I’m having a ton of fun learning and scripting in bash!
harsh3466@lemmy.mlto Linux@lemmy.ml•My first installation of linux on a 5 year old laptop1·12 days agoOne of my main workstations is a 2014 iMac running arch (btw). According to Apple it’s unusable ewaste.
harsh3466@lemmy.mlto Linux@lemmy.ml•My first installation of linux on a 5 year old laptop2·12 days agoWelcome!
Oh god. If you read Rama, stop after book two. Please. The first two are fabulous.
At this point he’s a bag of HGH.