I’m a Mac. I’m also an Ubuntu. I’m even a PC. In each of these, I have a pretty interface that lets me drag and drop just about anything to the Trash. Albeit an old, old feature that hardly ever comes in handy; when it does, it’s priceless. The thing is, I hardly ever use my GUI. Ever. I ride the command line like a drunken cowboy trying to prove something to the carneys. Given I really adore the concept of the GUI Trash deferred delete paradigm, I’ve added it to my command-line recipe book, giving it to me; GUI or not.
Posts Tagged: bash
16
Apr 10
Extensible Shell Environment Across Your Servers
One of my biggest frustrations any time I move to a new server: migrating to a new data center, changing jobs or simply adding new servers somewhere in between is keeping my customized shell environment while giving each server a bit of customizability. Of course, in a linux environment, we have our coveted .bashrc that will do this. But what has helped me through this process time and time again is building my .bashrc to allow for server-specific extensions. Here’s how I’ve done it. Continue reading →
2
Sep 09
Magical screens
Hello, I am the internet, and I am a screenoholic. Yes, I love screen. Never is an ounce of work accomplished on the command line without being encapsulated in the warm embrace of my favorite stateful terminal session manager. So much so that I quickly found myself being annoyed of always having to find my screen and never remembering what I named it, if I named it at all. And even worse were the times where I would lose my terminal to find that I was abandoned by my digital soul mate by never calling them before I stared. Oh how the innocence of youth lost so many critical vim undo buffers and ssh connections. I mean seriously, how many times can a guy type `ssh` in a day before hanging his self. 12. It turns out that number is 12. The resolution to my laziness was something of a revolution when I realized all the work I always forgot to do and never wanted to forget again could be easily accomplished automatically, every time I logged in. All hail the .bashrc. In other words, you can harness the power of .bashrc by intelligently invoking screen when you log in as well as giving a few helper functions along the way. Here is what I mean.