Created
July 24, 2020 20:22
-
-
Save biglovisa/eeef2a20bb7518c3a40b33b3e804d7b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Let's set up our dotfiles | |
### Part 1: Set up your dotfile repository | |
1. cd to your root directory (cd) | |
2. create a dotfiles directory (mkdir dotfiles) | |
2.5 run (git init) to initialize it as a git repository | |
3. run either a (touch .zsh_profile.zsh) file or a (touch .bash_profile) file | |
- zsh/bash depends on your shell. run (echo $SHELL ) in order to find out what shell you have | |
- if you already have a {zsh,bash}_profile file in your root directory, copy over the contents | |
from that file to the newly created file in your dotfiles repository | |
----> questions? | |
### Part 2: Create symbolic links to make sure you source your configuration on system start | |
4. Make sure that the contents from your original {zsh,bash}_profile file is copied over | |
5. Back up your original {zsh,bash}_profile | |
- for example, run (mv bash_profile bash_profile.bak) | |
- verify that there is a new file calld bash_profile.bak in your root directory | |
6. Create a symbolic link in your root directory with the name {zsh,bash}_profile that points | |
to the {zsh,bash}_profile in your dotfiles directory | |
- syntax: ln -s source link | |
- for example: ln -s ~/dotfiles/bash_profile ~/.bash_profile | |
7. run (ls -la) to verify it's set up correctly | |
8. add (echo "its working!") to the top of your {zsh,bash}_profile file in your dotfiles directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment