Scripts to be "quick and efficient" - Servers Administration, Networking, & Virtualization

Users browsing this thread: 8 Guest(s)
z3bra
Grey Hair Nixers
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
forwardagent yes
Now my keys are automatically added to my ssh-agent the first time i use them, and the agent is always forwarded (it helps me send files between hosts directly without having to retrieve them locally).

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


Messages In This Thread
Scripts to be "quick and efficient" - by venam - 02-09-2018, 02:35 PM
RE: Scripts to be "quick and efficient" - by jkl - 03-09-2018, 08:43 AM
RE: Scripts to be "quick and efficient" - by jkl - 03-09-2018, 10:02 AM
RE: Scripts to be "quick and efficient" - by oda - 04-09-2018, 12:59 AM
RE: Scripts to be "quick and efficient" - by pkal - 06-09-2018, 07:36 PM
RE: Scripts to be "quick and efficient" - by jkl - 06-09-2018, 07:44 PM
RE: Scripts to be "quick and efficient" - by pkal - 07-09-2018, 11:58 AM
RE: Scripts to be "quick and efficient" - by z3bra - 08-09-2018, 08:05 PM
RE: Scripts to be "quick and efficient" - by jkl - 08-09-2018, 08:21 PM
RE: Scripts to be "quick and efficient" - by xero - 25-10-2018, 01:01 PM
RE: Scripts to be "quick and efficient" - by gaak - 07-01-2019, 09:20 AM
RE: Scripts to be "quick and efficient" - by twee - 07-01-2019, 04:54 PM
RE: Scripts to be "quick and efficient" - by evbo - 17-01-2019, 01:47 PM
RE: Scripts to be "quick and efficient" - by s0kx - 17-06-2021, 03:11 AM
RE: Scripts to be "quick and efficient" - by jkl - 17-06-2021, 07:06 AM
RE: Scripts to be "quick and efficient" - by pfr - 22-06-2021, 10:50 PM