My Useful In Folder Script

Having been a long time user of 4DOS in my pre-win95 days, I had developed some batch files and/or aliases that I were quite handy in that environment. Switching to another operating system that’s more flexible with the command line, I’ve re-implemented some of those batch files and aliases. Here’s one of my favorites, and while it’s pretty simple, I use it all the time. It switches to a folder using the pushd command, executes your chosen command, and then uses popd to switch back to the original folder. It has no error checking of it’s own and it has no instructions. I did it in this fashion to keep it as light and quick as possible.

#!/bin/bash
## In Folder script by Joshua Kersey
## http://www.forwardyouth.com/ubuntu
pushd "$1"
"$2"
popd

Let me know if you’ve got any suggestions for improvement.

Scripting
bash

Comments (1)

Permalink

Updates for KDE4 Reveal Fewer Crashes and The Same Big Problems

There’s been many updates to KDE4, and while spending another day with KDE4 yesterday, I was relieved to find many of the segfaults and KDE crash errors had been resolved. I was disappointed to not be able to find any way of saving my session for KDE4, other than it saving my previous session. I use Manually saved sessions because of convenience and consistency on all my workstations and servers. I was also still unable to lock my workstation.

Bugs
Hardy Heron
KDE
Kubuntu
Server

Comments (0)

Permalink