Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: semi-useful aliases for UNIX shells. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

semi-useful aliases for UNIX shells
by Neoteric at 1:29 pm EDT, Sep 12, 2008

A common idiom in UNIX is to create a dir and then cd into it to do something. This is is a ksh compliant function to make a dir and cd into it... note that if you are dumb and give it more than one arguement you'll probably be sad.

To use put this in your .profile or .bashrc or where ever you put your shell tweaks. I've been told that this thing is easier to do in zsh.

--snip--snip--snip--
cdmkdir () {
mkdir "$*";
cd "$*";
}
--snip--snip--snip--

--timball


 
 
Powered By Industrial Memetics