Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to set up a keyboard shortcut in Shortcuts that opens a Terminal window already cd'd to the desktop. I've tried

Terminal ~/Desktop
Terminal cd ~/Desktop

But these don't work. Terminal --help doesn't seem to yield an appropriate command-line option. What do I need to do here?

Also, while a general solution to this would definitely be preferred, I would settle for being able to set the default directory for all Terminals.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

This is still not quite ideal with regards to the original question, but better than a solution affecting all Terminals: from this thread I discovered that from the desktop (i.e. if I first switch to an empty workspace, or otherwise give the desktop the focus somehow) I can Win+Alt+T to open a Terminal with cwd at the Desktop.

This tidbit of knowledge has the additional advantage that, if I were doing this to then cd more easily into a folder on the desktop (to run a newly downloaded app, for example), I can instead just open the folder and then hit Win+Alt+T.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.