Skip to content

Instantly share code, notes, and snippets.

@Kilian
Created October 9, 2012 12:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kilian/3858593 to your computer and use it in GitHub Desktop.
Save Kilian/3858593 to your computer and use it in GitHub Desktop.
function w {
if [[ $1 == "" ]]; then
command cd ~/workspace/;
else
command cd ~/workspace/$1;
fi;
}
@sksmatt
Copy link

sksmatt commented Oct 9, 2012

Weird! this is what I'm getting:

Matt ~: w
-bash: cd: /Users/Matt/workspace/: No such file or directory
Matt ~: w foo
-bash: cd: /Users/Matt/workspace/foo: No such file or directory

Are you on OSX?

@Kilian
Copy link
Author

Kilian commented Oct 9, 2012

Ubuntu :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment