README as Org File
- Emacs font adjustment - Xmonad default terminal - Re-write dotfiles README as org file
This commit is contained in:
parent
f38c66c62c
commit
88d121dd64
@ -1 +1 @@
|
||||
Subproject commit 45132b934bdd951f7b7b87c53814de09ade5a37f
|
||||
Subproject commit dfb8ea5e862699701bf4a46c74653153d9eaee36
|
2
.xmonad
2
.xmonad
@ -1 +1 @@
|
||||
Subproject commit 1c3eb1476ac58fd79b0882d3f191b2f183a4deb4
|
||||
Subproject commit 0dd425a4e4a83b77b76e68764b335a07b0278f51
|
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# dotfiles
|
||||
|
||||
Personal dotfiles repository
|
||||
|
||||
## Install on a new system
|
||||
|
||||
See [Acknowledgements](#Acknowledgements) for tutorial source.
|
||||
|
||||
* Prior to the installation, create alias for config
|
||||
* `alias config="GIT_WORK_TREE=~ GIT_DIR=~/.cfg"`
|
||||
* Add `.cfg` to `.gitignore`
|
||||
* `echo ".cfg" >> .gitignore`
|
||||
* Clone dotfiles into a bare repository
|
||||
* `git clone --bare <git-repo-url> $HOME/.cfg`
|
||||
* Define the alias in the current shell scope
|
||||
* `alias config="GIT_WORK_TREE=~ GIT_DIR=~/.cfg"`
|
||||
* Checkout content from bare repository to `$HOME`
|
||||
* `config git checkout`
|
||||
* Step above might fail with a message like:
|
||||
* ```
|
||||
error: The following untracked working tree files would be overwritten by checkout:
|
||||
.bashrc
|
||||
.gitignore
|
||||
Please move or remove them before you can switch branches.
|
||||
Aborting
|
||||
```
|
||||
* Delete `.bashrc` and `.gitignore`
|
||||
* `rm ~/.bashrc ~/.gitignore`
|
||||
* Re-run checkout
|
||||
* `config git checkout`
|
||||
* Set the flag `showUntrackedFiles` to `no` on this specific (local) repo
|
||||
* `config git config --local status.showUntrackedFiles no`
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
I followed [DistroTube](https://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg)'s process for setting up a git bare repository as shown in [Git Bare Repository - A Better Way To Manage Dotfiles](https://youtu.be/tBoLDpTWVOM).
|
||||
He references [The best way to store your dotfiles: A bare Git repository](https://www.atlassian.com/git/tutorials/dotfiles) by [Nicola Paolucci](https://www.durdn.com/).
|
75
README.org
Normal file
75
README.org
Normal file
@ -0,0 +1,75 @@
|
||||
#+title: Personal Dotfiles
|
||||
#+author: Sravan Balaji
|
||||
|
||||
* Installation
|
||||
|
||||
See [[*Acknowledgements]] for tutorial source.
|
||||
|
||||
Prior to the installation, create alias for config
|
||||
|
||||
#+begin_src shell
|
||||
alias config="GIT_WORK_TREE=~ GIT_DIR=~/.cfg"
|
||||
#+end_src
|
||||
|
||||
Add ~.cfg~ to ~.gitignore~
|
||||
|
||||
#+begin_src shell
|
||||
echo ".cfg" >> .gitignore
|
||||
#+end_src
|
||||
|
||||
Clone dotfiles into a bare repository
|
||||
|
||||
#+begin_src shell
|
||||
git clone --bare <git-repo-url> $HOME/.cfg
|
||||
#+end_src
|
||||
|
||||
Define the alias in the current shell scope
|
||||
|
||||
#+begin_src shell
|
||||
alias config="GIT_WORK_TREE=~ GIT_DIR=~/.cfg"
|
||||
#+end_src
|
||||
|
||||
Checkout content from bare repository to ~$HOME~
|
||||
|
||||
#+begin_src shell
|
||||
config git checkout
|
||||
#+end_src
|
||||
|
||||
Step above might fail with a message like:
|
||||
|
||||
#+begin_example
|
||||
error: The following untracked working tree files would be overwritten by checkout:
|
||||
.bashrc
|
||||
.gitignore
|
||||
Please move or remove them before you can switch branches.
|
||||
Aborting
|
||||
#+end_example
|
||||
|
||||
Delete the untracked files so they can be overwritten with the version from dotfiles
|
||||
|
||||
#+begin_src shell
|
||||
rm ~/.bashrc ~/.gitignore
|
||||
#+end_src
|
||||
|
||||
Re-run checkout
|
||||
|
||||
#+begin_src shell
|
||||
config git checkout
|
||||
#+end_src
|
||||
|
||||
Set the flag ~showUntrackedFiles~ to ~no~ on this specific (local) repo
|
||||
|
||||
#+begin_src shell
|
||||
config git config --local status.showUntrackedFiles no
|
||||
#+end_src
|
||||
|
||||
Pull and update submodules
|
||||
|
||||
#+begin_src shell
|
||||
config git submodule update --init --recursive
|
||||
#+end_src
|
||||
|
||||
* Acknowledgements
|
||||
|
||||
I followed [[https://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg][DistroTube]]'s process for setting up a git bare repository as shown in [[https://youtu.be/tBoLDpTWVOM][Git Bare Repository - A Better Way To Manage Dotfiles]].
|
||||
He references [[https://www.atlassian.com/git/tutorials/dotfiles][The best way to store your dotfiles: A bare Git repository]] by [[https://www.durdn.com/][Nicola Paolucci]].
|
Loading…
x
Reference in New Issue
Block a user