Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
andreypopp
· 12y ago · 0 comments
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.
Comments
[–]
mark_l_watson
12y 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.
[–]
Touche
12y ago
Nice, store todo.md in a cloud drive and you'll have it show up on all of your computers.
[–]
jmnicolas
12y 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 ?! ;-)
[–]
Touche
12y ago
head just prints the contents of the file, it doesn't execute anything.
[–]
intortus
12y ago
and neither does my terminal emulator...
[–]
girvo
12y ago
Wow, that's a really neat idea. I'm definitely going to try this, cheers.
[–]
simlay
12y ago
This may break scp when copying from a remote host which has this in the .bashrc.
[–]
uggedal
12y ago
No, it will not.
[–]
simlay
12y ago
https://bugzilla.redhat.com/show_bug.cgi?id=20527