I have an alias, that opens a file for me and jumps to a specific line in that file.
The first thing I do is ctrl+E to jump to the end of the line, but I was wondering if I can automate that as well?
This is the current alias:
alias changeCust='ssh -t [email protected] "nano +33 /etc/apache2/sites-enabled/25-av_portal.conf && service apache2 reload"'
You can open nano at line X column Y by calling nano like so:
This will open your file and place the cursor on line 3 column 5.
Not that on an Apple Mac, only the line number works, so adding
,5
will do nothing, you can only say