Live data from Hacker News

When I stopped trying to self-optimize, I got better

nytimes.com

101–110 of 110 posts

Re: When I stopped trying to self-optimize, I got better

#103
post #26

Earlier quoted context omitted.

I actually find it easier to memorize the flags than to memorize the commands I created myself, because they're a lot more descriptive than short commands like in your examples. The few times I do come up with my own stuff, it's a 2+ line function (or full shell script) that can't be duplicated in a single command and can't be done as an alias.

Except for tar. But there I use the mnemonic “xtrackt ze files”

Since a few years I only use dtrx. https://github.com/dtrx-py/dtrx/ I never have to learn this kind of stuff anymore.

Re: When I stopped trying to self-optimize, I got better

#104
post #24

Earlier quoted context omitted.

Everyone does this. Otherwise you'd go bat sh*t crazy trying to remember every intricate details of common tools. also using ctrl+r and filter through older commands (ctrl+r to cycle) is also necessary for good mental health. for example alias ll="lsd --icon never -l" alias lla="lsd --icon never -l -a" # all alias llr="lsd --icon never -l -r -a" # reversed alias lls="lsd --icon never -l -r -a -S" #by size alias llt="…

Ctrl+R is nice, and was a big quality of life improvement when I first found out about it. Recently I've found a similar improvement going from "plain old" ctrl+r for history to a set of zsh extensions plus fzf - my current set of extensions is zsh-autocomplete, zsh-autosuggestions, zsh-syntax-highlighting, zsh-history-substring-search, zsh-histdb, and fzf-histdb.

That sounds super similar my setup ( https://github.com/bbkane/dotfiles/tree/master/zsh ). I'll check out a few of those I haven't yet.

Re: When I stopped trying to self-optimize, I got better

#105

Earlier quoted context omitted.

I've been reflecting on how the last few years have been going for me, regarding my tendency to have no structure, no consistency, plenty of burnout, and no job lasting longer than a year and a half, and have consequently been reversing course on what you describe, especially now that I have medication. Long, long before I had an ADHD diagnosis, I struggled with the same pattern of working intensely for whatever amou…

I see what you are saying. You can indulge too much. There is a certain amount of discipline required. In my method, I have to work for the 20 mins. Essentially practice focusing, work through the restlessness. I also have things during the 20 mins to help me stretch it out - such as sitting outside while working (or have window wide open) or TV and music on for the background noise. For the 10 mins of distractions,…

> As an aside note, doing 10 mins of house chores multiple times a day really adds up. Lot of satisfaction, and more importantly focus gained!, when the house is tidy.

Agreed. Most chores only take 10 mins if you're going for it.

Re: When I stopped trying to self-optimize, I got better

#106
post #104

Earlier quoted context omitted.

Ctrl+R is nice, and was a big quality of life improvement when I first found out about it. Recently I've found a similar improvement going from "plain old" ctrl+r for history to a set of zsh extensions plus fzf - my current set of extensions is zsh-autocomplete, zsh-autosuggestions, zsh-syntax-highlighting, zsh-history-substring-search, zsh-histdb, and fzf-histdb.

That sounds super similar my setup ( https://github.com/bbkane/dotfiles/tree/master/zsh ). I'll check out a few of those I haven't yet.

Some interesting ones there and sounds like you have a similar philosophy to me - don't customize to the point that context-switching to bash is a pain.

For tab-completion I actually prefer the builtin zsh completer set to use the menu mode - this is one of the big improvements you get with zsh over bash / etc to my mind. I have in .zshrc

  zstyle ':completion:*' menu select=2 select=long interactive
You can set it to use your ls colors with something like

  zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}"

Re: When I stopped trying to self-optimize, I got better

#107

Earlier quoted context omitted.

If your utilities are written as self-contained exported Bash functions, you could concatenate them all in a single file (say, `utils.sh`), with a single line at the end: exec /bin/bash Then you could do something like: ssh hostname@address -tt bash -s And have all your utilities available on the remote machine :)

Does this work for aliases?

[deleted]

Re: When I stopped trying to self-optimize, I got better

#108
post #88

Earlier quoted context omitted.

Optimising the addition of a few flags to a command is alin to optimising the length of variable names. I find that typing out flags gives me plenty of time to think about what I am doing anyway.

Yes, nothing says productivity like spending half and hour to find the right flags every time you need to use something outside the most common unix userland... or getting them subtly wrong in some production shell script...

So what you're saying that you're putting your own home-grown script wrappers from local machine to production deployment scripts?

Re: When I stopped trying to self-optimize, I got better

#109

I think "self-optimize" is the wrong term to focus on. Imo, it's more about self-compassion / a more personal version of "psychological safety." Anecdotally, a few years ago I made a decision to run with my (ADHD driven) impulses when deciding what to spend my time on. It was difficult to let go, but I decided to let myself just fall behind with projects / work for a year or two (or until I was fired.) Long term, the…

The funny thing about ADHD is that the "topic" of ADHD is a trap for ADHD people in itself. Being aware of ADHD might initially seem like a good thing, but then it becomes a constant thing to "optimize" for. It becomes ever-present. "Could this behavior/issue/problem be my ADHD?".

Being aware of ADHD is unequivocally a good thing, because it gives you the vocabulary to talk about what you are experiencing. It helps you find workaround & tools for your issues. You might even be able to treat it. (given you work in a functioning society that doesn't randomly restricts manufacturing of the meds you need because other folks like to abuse it and develop addictions)

The idea that awareness of your medical issues is somehow an affliction in itself is an incredibly condescending idea.

Re: When I stopped trying to self-optimize, I got better

#110

Earlier quoted context omitted.

If your utilities are written as self-contained exported Bash functions, you could concatenate them all in a single file (say, `utils.sh`), with a single line at the end: exec /bin/bash Then you could do something like: ssh hostname@address -tt bash -s And have all your utilities available on the remote machine :)

Does this work for aliases?

[deleted]
Post reply on HN