Can I shorten my directory commands in ubuntu?
- by Spencer Cooley
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.