Can I shorten my directory commands in ubuntu?
Posted
by
Spencer Cooley
on Super User
See other posts from Super User
or by Spencer Cooley
Published on 2011-06-20T21:22:37Z
Indexed on
2011/06/21
8:24 UTC
Read the original article
Hit count: 597
When working on a rails app I like to open all of my files through the command line like so
cd my_app
gedit app/views/user/show.html.erb
Is there a way that I could shorten this so that I could just write something like
gedit user_views/show.html.erb
?
I would like the console to stay in the main directory, I just don't like having to type out app/controller/user_controler.rb every time I want to open the user controller. I know that I could just open the file with my mouse, but I feel like moving from keyboard to mouse breaks my focus a little bit. When I can just tap away at the keyboard it seems like I have a more smooth workflow.
© Super User or respective owner