Add Shortcuts In Mac

I have switched to Mac!!!

If you want to add shortcuts to certain directories so that you don’t have to type out the complete file path, you can add it to your .bash_profile file located in your /home directory.

Navigate to home:
$ cd ~

$ vi .bash_profile
This will create a new .bash_profile file if one doesn’t already exist. If one already exists, it will open the file using the vi terminal editor.

alias fcc='cd /Users/username/freecodecamp_projects'

CONTROL+C
This will allow you to exit the editor.

:wq
The ‘w’ stands for ‘write’.
The ‘q’ stands for ‘quit’.

You can also edit your Terminal inside your .bash_profile file and add emojis:
Tips: https://natelandau.com/my-mac-osx-bash_profile/
Emojis: http://osxdaily.com/2013/04/08/add-emoji-command-line-bash-prompt/
Colors: http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s