Skip to content

Instantly share code, notes, and snippets.

@mmisono
Created May 30, 2010 03:55
Show Gist options
  • Save mmisono/418764 to your computer and use it in GitHub Desktop.
Save mmisono/418764 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import os
class Pwd():
def __repr__(self):
return os.getcwd() + "% "
if __name__ == '__main__':
while True:
dir = raw_input(Pwd())
if len(dir):
os.chdir(dir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment