Hacker News new | ask | show | jobs
by andreypopp 4514 days ago
What if your todolist is too large? Store it somewhere else (in you homedir, no need for a sudo) and add

  head -n 10 ~/todo.md
to your .bashrc/.zshrc to show 10 most prioritised tasks on each session startup.
4 comments

+1 Thanks, good idea. I put my todo.txt in my Dropbox folder for manual access on my android phone and iPad, and for automatic viewing on opening a new shell tab.
Nice, store todo.md in a cloud drive and you'll have it show up on all of your computers.
So you're storing a file on a public server that is beyond your control and you make your shell read it every time you launch it ?

What could possibly go wrong ?! ;-)

head just prints the contents of the file, it doesn't execute anything.
and neither does my terminal emulator...
Pipe it through something that strips control characters before printing perhaps?
Wow, that's a really neat idea. I'm definitely going to try this, cheers.
This may break scp when copying from a remote host which has this in the .bashrc.
No, it will not.