Skip to content

Bash Tips

Josue Rios edited this page Nov 10, 2020 · 1 revision

Tips for being more productive on the terminal

  1. Use && to execute two commands sequentially where the second command depends on the first one succeeding.

    E.g. to commit and then push but push only if commit succeeds:

    git commit -m "foo" && git push # only push if commit succeeds
    
  2. Use Ctrl R to search through terminal history. See this video for more information.

Clone this wiki locally