Ask HN: What are your favorite developer-efficiency tips?
566 pointsI recently started integrating tmux and vim into my workflows. Obviously, it was a huge efficiency booster. What are some other tools (custom built or off-the-shelf), hotkeys, workflows that were game-changing for you as a dev? I'm interested in hearing about anything and everything (stuff from ctrl+l to clear the terminal to little-known git commands to larger-scale strategies like CI/CD)
Comments (522) 158 threads
Earlier commentsFor me, the transition from Bash to Zsh has been a huge efficiency boost. Mainly because of some great plugins for Zsh, such as z, zsh-peco-history (better history search), zsh-autosuggestions, and zsh-syntax-highlighting.
My blog post about setting up a Linux workstation describes this in detail: https://tkainrad.dev/posts/setting-up-linux-workstation/#swi...
The best thing is, there is no initial productivity hit. You don't miss out on any shell features that you are accustomed to.
If you work a lot with ssh, it is also worth the effort to create a proper .ssh/config that contains the most used hosts.
scp ~/.ssh/id_rsa.pub me@[IP address]:/home/me/.ssh/authorized_keys
Make aliases for your most common commands. Someone in a similar thread posted a script for parsing your history to find them out. For me they were all git subcommands.
Write a script the second time you have to do something.
On a macro level: Don't work on doomed projects. Don't update tools in the middle of a project unless the current version is a roadblock.
scp ~/.ssh/id_rsa.pub me@[IP address]:/home/me/.ssh/authorized_keys
you can use this:
ssh-copy-id me@[IP address]
1) VIM with almost no special .vimrc
2) gnu screen (10 screens initialized via .screenrc)
- hotkeys Ctrl-Left (prev), Ctrl-Right (next)
- I tweak my $PS1 prompt so it will display which $WINDOW I'm on.
3) Not a tool, but a tip. Maintain a TODO list. I just open a text file and put some simple separators between projects I'm working simultaneously. But I go out of my way to ensure it's got everything I'm going to "DO". If I think of something, even if I'm not sure if I'll actually want to do it, I don't rely on my memory for ANY of it. If I'm not going to do it immediately I put it on my TODO list.
Unless you have 5+ years of muscle memory (learnt with pain), all the shortcuts are too confusing.
Laughing in urxvt
> Unless you have 5+ years of muscle memory (learnt with pain), all the shortcuts are too confusing.
Don't know which level of mastery of the default shortcuts you're talking about but speaking from my experience, going through vimtutor and oni[0] integrated tutorial everyday made me productive in less than one week, without modifying any .vimrc, granted I used neovim, but still...
0: https://github.com/onivim/oni
[1]: https://github.com/scmbreeze/scm_breeze
All comments shown.
Couldn't load more comments. Check your connection and try again.