A shell script that downloads a satellite weather image, optionally composites another image on it, resizes stuff and sets the result to desktop. Works on os x and linux with ImageMagick for composite stuff.
goes : bash
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
z is the new j, yo.
z : bash (github)
So over the weekend autojump showed up in my links. Very nice idea, and I had been trying to come up with something similar for a long time, ever since someone showed me a tantalizing snippet of zsh.
I'd been thinking in terms or find or locate, but I'd always end up with too much noise in the directory list. I ended up with just a function in my bashrc() that assigns shortcuts hardcoded in a file - which works pretty well actually, if I take the time to fiddle with it.
So anyway, autojump has a neat approach, but i balked a bit at spinning up python every time I hit a prompt, and I had most of what it was doing lying around in my bashrc already, so I stuck it all together and made a thing.
I imagine a thing that runs every time I get a prompt should probably be as fast as possible. I did a bit of searching around trying to get a feel for how fast different ways to do this would be, maybe sqlite would be better ... I went with some awk and shelll, a flatfile and relatively few lines of code. I'll probably try to compare performance of my dealie and autojump, maybe this will be a nice other project to try and write in C even.
Anyway, it works mostly like autojump, one thing I added is that it ignores your $HOME directory. Because you are always there it's gonna take up all sorts of nice letters, and it's two letters to get back to ~ anyway.
Bash completion works, and if it can't find a case sensitive match, it will look for a case insensitive one.
j : bash (github)