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="…
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.
When I stopped trying to self-optimize, I got better
31–40 of 110 posts
Re: When I stopped trying to self-optimize, I got better
#32Over the past year, I’ve made a deliberate effort to improve my “personal computing”, which for me is about how I use the shell. I start by trying to notice when I’m doing the same task multiple times and getting tripped up on the specific syntax or sequence of commands (i.e. what’s the Git command again to split certain files out of a previous commit into a separate one?) I will then create an alias, a shell script…
Re: When I stopped trying to self-optimize, I got better
#33I 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…
If you don’t mind, I’d love to hear a bit more. I feel like I’ve been pushing hard against my ADHD tendencies as well, very curious what it means and looks like to give in and flourish.
Some things have just sort of worked themselves out. I've ended up with what I think of as a "procrastination ouroboros." Most of the projects I rotate through have various interesting parts that are in various states of completion. The big difference for me, though, is that it _is_ a rotation. I actually return to projects now, because I don't completely burn through all of my enthusiasm in the first go. One of these is a project that I've been working on for several years now, which is a first for me.
I still don't love losing days on something nonsensical because I hyperfocused. I still end up stuck on boring tasks, and it's hard to not feel like it's all laziness, etc. After years of that, though, it feels like pushing _directly_ against those impulses isn't really sustainable. It's pointless wasting extra time on self-flagellation.
I don't know that this level of granularity will actually apply to anyone else, but I think it's worthwhile to at least give yourself the space to explore things like this when you can.
(Also, I take an SSRI, a prescription stim, working from home helps, and I'm sure there are a myriad of other things / factors. I think, if nothing else, "giving in" would have helped me try some of those things earlier, and it has helped me avoid short circuiting thought processes that prevent attempts at actual change.)
Re: When I stopped trying to self-optimize, I got better
#34Earlier 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="…
Fish's autocomplete makes life a lot easier, too. It's delightfully well designed.
Re: When I stopped trying to self-optimize, I got better
#35Over the past year, I’ve made a deliberate effort to improve my “personal computing”, which for me is about how I use the shell. I start by trying to notice when I’m doing the same task multiple times and getting tripped up on the specific syntax or sequence of commands (i.e. what’s the Git command again to split certain files out of a previous commit into a separate one?) I will then create an alias, a shell script…
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="…
Re: When I stopped trying to self-optimize, I got better
#36Earlier 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="…
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.
Re: When I stopped trying to self-optimize, I got better
#37Over the past year, I’ve made a deliberate effort to improve my “personal computing”, which for me is about how I use the shell. I start by trying to notice when I’m doing the same task multiple times and getting tripped up on the specific syntax or sequence of commands (i.e. what’s the Git command again to split certain files out of a previous commit into a separate one?) I will then create an alias, a shell script…
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="…
But I'd always alias some uncommon tasks and usages. Especially my quirky git ones:
# get default branch
alias gdefault='git remote show origin|grep -E HEAD|cut -d" " -f5'
# cd to git root
alias groot='cd "$(git rev-parse --show-toplevel)"'
# Revert last unpushed commit to the state before commiting
alias uncommit="git reset HEAD~1 --soft"
# Show all commits between head and main as one-liner
alias gl1="git log --reverse --oneline HEAD...\`gdefault\`"Re: When I stopped trying to self-optimize, I got better
#38Earlier 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="…
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.
alias lsa=“grep ^alias $HOME/.zshrc | sort”Re: When I stopped trying to self-optimize, I got better
#39Over the past year, I’ve made a deliberate effort to improve my “personal computing”, which for me is about how I use the shell. I start by trying to notice when I’m doing the same task multiple times and getting tripped up on the specific syntax or sequence of commands (i.e. what’s the Git command again to split certain files out of a previous commit into a separate one?) I will then create an alias, a shell script…
Welcome to Unix! :)
I took a handful of math courses in school, and what I didn't realize till later was that learning how to rigourously prove things mathematically had dramatically reshaped my mind. I am left wondering what it must be like for the minds of those who have traversed that tower far higher than I ever have or will.
Re: When I stopped trying to self-optimize, I got better
#40Over the past year, I’ve made a deliberate effort to improve my “personal computing”, which for me is about how I use the shell. I start by trying to notice when I’m doing the same task multiple times and getting tripped up on the specific syntax or sequence of commands (i.e. what’s the Git command again to split certain files out of a previous commit into a separate one?) I will then create an alias, a shell script…
That's an interesting idea. Did you write a script to identify commands that you use repeatedly? I wonder how that could best be done?