From 9afbfc462ccf960d53404863de02e23c3b963b30 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Tue, 8 Dec 2020 17:34:35 -0800 Subject: [PATCH 1/1] Init --- .cfg-README | 32 ++++++++++++++++++++++++++++++++ .zsh/aliases | 1 + .zshrc | 8 ++++++++ 3 files changed, 41 insertions(+) create mode 100644 .cfg-README create mode 100644 .zsh/aliases create mode 100644 .zshrc diff --git a/.cfg-README b/.cfg-README new file mode 100644 index 0000000..0f2efba --- /dev/null +++ b/.cfg-README @@ -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 $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 $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 index 0000000..ed24b15 --- /dev/null +++ b/.zsh/aliases @@ -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 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 -- 2.34.1