Keyboard Shortcuts
- Control+F: Move forwards
- Control+B: Move backwards
- Control+P: Move up
- Control+N: Move down
- Control+A: Got to beginning of the line
- Control+E: Got to end of the line
- Control+D: Delete forwards
- Control+H: Delete backwards
- Control+K: Delete to the end of the line
- Control+U: Delete the entire line
Applications
- iTerm2: Better terminal app for macOS
- Sublime Text: Alternative text editor with plugins, aimed at developers
- Visual Studio Code: Another text editor with plugins (alternative to Sublime Text and Atom)
Terminal Tricks
Want colored
ls
- Open the file
located in your home directory (path:.bash_profile) with your text editor of choice. I used~/.bash_profile, butnanoor a graphical text editor (not TextEdit, maybe Visual Studio Code or Sublime Text!) would work as well.vim
- At the bottom, add:
-
export CLICOLOR=1
- If you want colors other than the default, also do
. You can get theexport LSCOLORS=YOUR_LSCOLORSfrom this website: LSCOLORS Generator.YOUR_LSCOLORS
-
- Save the file!
- Type:
orsource ~/.bash_profile.. ~/.bash_profile
What about locking your Mac from the terminal? I just added an alias for
pmset displaysleepnow
~/.bash_aliases
alias lockscreen="pmset displaysleepnow"
This guide is using
bash
Comment?