Man, I feel pretty dumb for getting hung up on this for so long, but it's something that I don't want to forget so I'm writing a blog post about it. ;)
I love working in the command line because you just feel like you have so much raw power at your fingertips. While the nice GUI windows and popups are the cute and approachable face of your machine, the command shell the backdoor into your computer's soul. I use terminal (the default command shell on Mac computers) quite a lot, and I'm often flipping back and forth between the terminal and other programs; sometimes between terminal and the default directory viewer, Finder. This post is about making that flippage easier.
This is a great little tip for any software developer, regardless of your programming language of choice. It's these subtle things that can raise you up regular programmer to coding superstar. When sending URLs that link to files on github you may want to reference a specific line number or block of code. The people receiving your code snippets will appreciate these nice highlights, and (subconsciously or not) they'll be thinking, "damn, he's good".
If you were using an older version of angular CLI before it had aot built into it then you may start to receive these errors when you run you usual `ng serve` or `ng build` commands:
ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 7:3 in the original .ts file), resolving symbol mainStoreReducer in /.../, resolving symbol AppModule in /../, resolving symbol AppModule in /../, resolving symbol AppModule in /../
If you have multiple accounts on Github (or whatever git repository host you use) then it can be a little confusing knowing which user you are committing as and how to switch to a different user. In this post I'll show you an easy way to switch between users from the command line.
The posts on this site are written and maintained by Jim Lynch. About Jim...