Lurker News
I 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 comments
tkainrad1 reply#
Great thread, thank you. Already seen a few things that I will look into.

For 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.

ropeladder#
Lots of good Zsh tips, thanks for this writeup!
Uhhrrr1 reply#
Never waste time logging in again:

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.

andrewtsaplin1 reply#
But instead of this:

scp ~/.ssh/id_rsa.pub me@[IP address]:/home/me/.ssh/authorized_keys
you can use this:
ssh-copy-id me@[IP address]

Uhhrrr#
Nice, thanks!
unexaminedlife1 reply#
I have such a simple setup but it's not for everyone. It also fails miserably if I'm working in an environment where I can't do almost everything I need to do from the command-line.

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.

mekster1 reply#
vim has like the worst default setting than any other app in existence in my opinion and I cannot figure why anyone would want to stick to it.

Unless you have 5+ years of muscle memory (learnt with pain), all the shortcuts are too confusing.

RMPR#
> vim has like the worst default setting than any other app in existence

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

rebolyte1 reply#
SCM Breeze[1] is one of the first things I install whenever I set up a new dev machine. Setting up bash aliases for git commands like `ga=git add` is nice, but SCM Breeze takes it one step further and automatically numbers each file in the git output. Then you can do `ga 1 2 5`.

[1]: https://github.com/scmbreeze/scm_breeze

vharish#
Zsh has this built in

Load more comments