Y
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
mark_l_watson
4514 days ago
+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.
link
Touche
4514 days ago
Nice, store todo.md in a cloud drive and you'll have it show up on all of your computers.
link
jmnicolas
4514 days ago
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 ?! ;-)
link
Touche
4514 days ago
head just prints the contents of the file, it doesn't execute anything.
link
intortus
4514 days ago
and neither does my terminal emulator...
link
dkersten
4514 days ago
Pipe it through something that strips control characters before printing perhaps?
link
girvo
4514 days ago
Wow, that's a really neat idea. I'm definitely going to try this, cheers.
link
simlay
4514 days ago
This may break scp when copying from a remote host which has this in the .bashrc.
link
uggedal
4514 days ago
No, it will not.
link
simlay
4514 days ago
https://bugzilla.redhat.com/show_bug.cgi?id=20527
link