terminal

Bash rclone autocomplete logo

Rclone remote path auto-completion on Linux (Google Drive)

I started playing with rclone in the interest of easily editing files from Google Drive with Vim. As it turns out, you can’t edit native Google Docs files in this manner, so that was a wash!

But a side benefit of this misadventure is this bash autocomplete script which I wrote to auto-complete remote paths for rclone with a Google Drive target. It probably works for others too, I haven’t tested them. 🙂

This implementation is in pure bash all except for the call to rclone itself to check against known remote targets. I appreciated An introduction to bash completion to get me started on the concepts, and the rest of what anyone needs is all in the bash manpage under complete.

Here in this post is the initial version I’m using. If you’re going to use it, check the current version of the file on my Github in case anything changes.

 

 

hi-dpi cssh and xterm

Using CSSH/XTerm with a high-DPI display

On my laptop with a QuadHD display, cssh was unusable

Screenshot of cssh using tiny bitmapped fonts

because X is a hundred years old and xterm (the default for cssh) defaults to bitmapped fonts which are tiny and gross.

So how do we them it to look like this instead?

Screenshot of cssh using xterm with light/colored terminals at a legible size

Solution

This worked for me: just configure XTerm to use TrueType fonts!

And then configure cssh to a more appropriate size!

There you go.  That’s so much nicer.

Screenshot of cssh using xterm with light/colored terminals at a legible size