rename script
This commit is contained in:
parent
032e24bcb5
commit
2b3c8f3962
2 changed files with 6 additions and 6 deletions
12
README.org
12
README.org
|
|
@ -10,14 +10,14 @@
|
|||
- Set everything up with one command
|
||||
- Updating configurations shall require nothing more than =git pull=
|
||||
|
||||
This is a reference repository which contains a =setup= bash script and some example dotfiles for two machines called =host1= and =host2=.
|
||||
This is a reference repository which contains a bash script and some example dotfiles for two machines called =host1= and =host2=.
|
||||
|
||||
*Warning*: If you want to try this make a backup of your dotfiles!
|
||||
The =setup= script doesn't overwrite existing files but you never know.
|
||||
The script doesn't overwrite existing files but you never know.
|
||||
|
||||
** Concept
|
||||
|
||||
The concept is based on symlinks and two directories called =common= and =machines= and a =setup= bash script.
|
||||
The concept is based on symlinks and two directories called =common= and =machines= and a bash script called =dotlink=.
|
||||
|
||||
The =machines= directory contains subdirectories for all machines on which dotfiles are managed.
|
||||
They need to match the /hostname/ of the machine (in this repository =host1= and =host2=) and mimic the corresponding =$HOME= directories.
|
||||
|
|
@ -47,12 +47,12 @@
|
|||
│ ├── beets
|
||||
│ │ └── config.yaml
|
||||
│ └── mpv -> ../../../common/mpv/
|
||||
└── setup
|
||||
└── dotlink
|
||||
#+end_example
|
||||
|
||||
The *mpv* configuration is shared between hosts, =host1= has an *OfflineIMAP* configuration in his home directory and =host2= has a *beets* configuration in his =.config= directory.
|
||||
|
||||
When calling the =setup= script, all files from the directory which matches the current /hostname/ are linked to their destination in the =$HOME= directory.
|
||||
When calling the =dotlink= script, all files from the directory which matches the current /hostname/ are linked to their destination in the =$HOME= directory.
|
||||
Calling the script is only neccessary when new files are added.
|
||||
If you updated a configuration somewhere else just call =git pull= and thats it.
|
||||
|
||||
|
|
@ -63,4 +63,4 @@
|
|||
|
||||
1. Add the files to the =common= directory
|
||||
2. Execute =ln -rs common/<config_or_directory> machines/<hostname>/<path_in_home>= for every machine on which the files should be present
|
||||
3. Call the =setup= script on every modified machine
|
||||
3. Execute the =dotlink= script on every modified machine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue