Scripts to be "quick and efficient" - Servers Administration, Networking, & Virtualization
Users browsing this thread: 8 Guest(s)
|
|||
I moved away from vim when I realised that I could easily spend an hour per day tweaking my .vimrc. Be it searching for scripts, color scheme or rebinding stuff.
I'm now using vis for years now, with the default config and it works perfectly. I'm slowly (but surely!) moving my toolset to the ALL DEFAULTS! way. No config file is the easiest way to deal with configs ;) To go back to the original topic, I have tens of scripts to make me quicker and more efficient. Of course I have my own `diffcolor`, but the one I use the most is a script that crawl my /etc/hosts and $HOME/.ssh/known_hosts, and pipe them in `pick(1)`, a fuzzy selector. It then let me ssh in a host directly. I bound it to ^K in mksh, so I can connect to any host in seconds (it makes all my collegues jealous hehe). I use a similar system with `dmenu(1)` to open bookmarks in my webbrowser, or browse my history. It let me acces web resources in just one keybind, without needing to focus an app. On the efficiency level, I also added these lines to my .ssh/config: Code: addkeystoagent yes The last thing I did was to create a "plumb" script, bound to button4 on my mouse (on the side, near thumb). It reads whatever is in the primary selection amd tries.to open it. It works on local file path of course (ala xdg-open), but I use it mostly for web links. Instead of openning everything in the browser, it will download the file (or stream.it) in the local apropriate application: media player, image viewer, text editor, ... This way I can use.the full power of each app instead of relying on the web browser! For the curious, here is an earlier version of this script (now named "plumb" in hommage to plan9): http://git.z3bra.org/scripts/file/link-open.html |
|||