Finding your own user account in rails console is very frequent command in daily work. But key the full command is very inconvenient and waste time. You can use this technique to save time!
~/.pryrc if you are using pry)
class Dev def self.me User.find_by_email("email@example.com") end end
Then in rails console:
 pry(main)> user = Dev.me User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'firstname.lastname@example.org' LIMIT 1 ...
You can put most frequent used commands in there. But watch out for name collision.
p.s. I used to put a
app/models/dev.rbin every projects. But it gets inconvenient when maintaining too many projects. Also your colleagues might have a different shortcut preferences. So I decided to put them in