DEV Community

Ersin Buckley
Ersin Buckley

Posted on

7 3

Get better at writing with 3 lines of bash

Everyone knows that great communication skills are the most important trait we want in our team members. I have been deliberately practicing writing over the last three years and today I want to share with you my most impactful tools. Here are three lines of bash that are responsible.

#!/bin/bash

NOTESPATH="~/Notes/"

$EDITOR "$NOTESPATH$(date "+%Y-%-m-%-d")"
Enter fullscreen mode Exit fullscreen mode

How do I install it?

  • put it on your path, I suggest /usr/bin
  • create the Notes directory in your user home.
  • set your $EDITOR variable to your favorite tool ( if it isn't already ).

What does it do?

  • Creates a file with the current date if it doesn't exist
  • Opens your today's file if it already exists

After many iterations on writing tools, this is still my favorite way to get my thoughts on 'paper'. Day to day, I spend my time using the terminal, and for me this script is the easiest way to context switch in to writing.

The hardest part about deliberate practice is starting, and this tool has allowed me to write something much more frequently.

Hope you find this useful! <3

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay