Enable Autocomplete for root on Mac OS X

Aside by Jean-Sebastien Morisset - Tuesday, December 18th, 2012 - (0)

Are you frustrated by the lack of autocomplete in root’s shell on Mac OS X? I’ve tried a few different solutions, and the easiest / simplest I found is to create an /etc/inputrc file (chown root:wheel and chmod 644) with the following text.

The /etc/inputrc file is used by readline — the input-related library used by bash and most other shells. GNU’s readline init file syntax page documents all the available settings, Gerard Beekmans Linux initrc file page shows a common initrc for Linux, and Garrett LeSage writes about a few super-useful inputrc lines.

VPNs and Location Aware Settings on Mac OS X

Categories: AppleScript, Bash, Mac OS X, OpenVPN
Comments: No Comments
Published on: Monday, November 19th, 2012

Recently, a co-worker was asking about my configuration for connecting to the corporate VPN, and I thought the information might be useful for others as well — I use a combination of Tunnelblick; an OpenVPN client for Mac OS X, Sidekick; an application that changes Mac OS X settings based on your physical location (and/or network SSID, etc.), and a little shell script I wrote to start the VPN, define additional routes, and update my dynamic DNS hostname.

Continue reading…

Autocomplete for csshx

Categories: Bash, Mac OS X
Comments: 5 Comments
Published on: Saturday, September 29th, 2012

I recently began using csshx, a terminal cluster application for Mac OS X. csshx opens one terminal window per cluster node, and another window to capture keyboard input and send it to all others. This allows me to manage several servers at once, provided they are identical enough for my intended purpose.

Cluster SSH tool for Mac OS X Terminal.app

Continuing the earlier idea of Autocompleting SSH Hostnames, here’s a useful addition to your /etc/profile.d/complete.sh file for users of csshx.

Continue reading…

page 1 of 1
Freelance UNIX SysAdmin
20121006-095055-jwolfe-49

Looking for a Sr UNIX Systems Administrator specializing in Systems Integration? I may be available for freelance or contract work, either remotely or on-site. You can contact me by email at jsm@surniaulula.com to discuss solutions specific to your needs.

  • Location : Montreal QC, Canada
  • Availability : 4-8 hrs / week freelance

Continue reading…

Social Pages and Feeds
FacebookGooglePlusLinkedInTwitterRSS