- Like I said earlier, the purpose is to make your life easier. Now that we have gotten past the unfortunate parts that you need to know in order to use these tools, we can dive into some of the benefits you will receive.
- Using other computers is a pain because you have gotten used to your own, right? No one has their environment setup quite like yours.
- Can be solved with a package manager such as Homebrew (for macs) or apt-get (for debian based linux distros, ie. Ubuntu)
- ex. there is a better command for
grep
calledack
. How easy is it to install? If you have homebrewbrew install ack
or with apt-getsudo apt-get install ack-grep
. - Thats pretty cool but it would be a pain to remember them all and execute them everytime you wanted to set up a new workstation. Solution? write a bash script. Better solution? edit your bashrc (linux) or bash_profile (Mac) file
- Allows you to customize your shell experience. I posted the one I use on my Mac on the github. Feel free to use it and expand on it.
- Your bash profile or rc is a hidden file in your home (~) directory
crtl- a
beginning of the linecrtl-e
end of the line!<command>
redo last use of the command,!!
do last command againecho $?
prints whether the last command was successful 0 or the error code- Exit a process
crtl-c
, kill a processkill -15 <pid>
curl
- history, arrow up and down
history
- You can take the output of a process and use it as the input of another
|
- ex.
history | grep ssh
- ex.
- write to file
>
- read from file
<
- Make your vim experience awesome: spf13
- compile with make file and navigate to errors using quickfix