]> git.quilime.com - cfg.git/commitdiff
Init
authorGabriel Dunne <gdunne@quilime.com>
Wed, 9 Dec 2020 01:34:35 +0000 (17:34 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Wed, 9 Dec 2020 01:34:35 +0000 (17:34 -0800)
.cfg-README [new file with mode: 0644]
.zsh/aliases [new file with mode: 0644]
.zshrc [new file with mode: 0644]

diff --git a/.cfg-README b/.cfg-README
new file mode 100644 (file)
index 0000000..0f2efba
--- /dev/null
@@ -0,0 +1,32 @@
+Note that the only two differences between using a bare and non-bare repository are:
+
+presence of the  --bare flag when initialising and cloning the repo
+the path to the Git directory,  $HOME/.cfg/ for bare and $HOME/.cfg/.git/ for non-bare.
+Storing your dotfiles using a non-bare, default repository:
+1. git init $HOME/.cfg
+2. alias config='/usr/bin/git --git-dir=$HOME/.cfg/.git/ --work-tree=$HOME'
+3. echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/.git/ --work-tree=$HOME'" >> $HOME/.zsh/aliases
+4. config config --local status.showUntrackedFiles no
+5. config add .vimrc + config commit -m "add .vimrc" + Set up a remote repository on GitHub or your Git server of choice + config push
+
+Installing:
+1. echo ".cfg" >> .gitignore
+2. git clone <remote-git-repo-url> $HOME/.cfg
+3. alias config='/usr/bin/git --git-dir=$HOME/.cfg/.git --work-tree=$HOME'
+4. config config --local status.showUntrackedFiles no
+5. config checkout
+
+
+Using a bare repository like @durdn's tutorial
+1. git init --bare $HOME/.cfg
+2. alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
+3. echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zsh/aliases
+4. config config --local status.showUntrackedFiles no
+5. config add .vimrc + config commit -m "add .vimrc" + set up a remote repository on GitHub or your Git server of choice + config push
+
+Installing:
+1. echo ".cfg" >> .gitignore
+2. git clone --bare <remote-git-repo-url> $HOME/.cfg
+3. alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
+4. config config --local status.showUntrackedFiles no
+5. config checkout
diff --git a/.zsh/aliases b/.zsh/aliases
new file mode 100644 (file)
index 0000000..ed24b15
--- /dev/null
@@ -0,0 +1 @@
+alias config='/usr/bin/git --git-dir=/home/quilime/.cfg/.git/ --work-tree=/home/quilime'
diff --git a/.zshrc b/.zshrc
new file mode 100644 (file)
index 0000000..59a10de
--- /dev/null
+++ b/.zshrc
@@ -0,0 +1,8 @@
+# Source manjaro-zsh-configuration
+if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
+  source /usr/share/zsh/manjaro-zsh-config
+fi
+# Use manjaro zsh prompt
+if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
+  source /usr/share/zsh/manjaro-zsh-prompt
+fi