From 0111b990d083e03b8244e503eb893a439e4b1cc8 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Wed, 22 May 2024 11:40:15 +0400 Subject: [PATCH] add .gitconfig & initial zsh setup --- git/.gitconfig | 6 ++++++ zsh/.zshrc | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 git/.gitconfig create mode 100644 zsh/.zshrc diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..915d9dc --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,6 @@ +[user] + name = Laurent Le Houerou + email = laurent@lehouerou.net +[credential] + helper = cache --timeout=3600 + diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..d564d9c --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,8 @@ +ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" + +if [ ! -d "$ZINIT_HOME" ]; then + mkdir -p "$(dirname $ZINIT_HOME)" + git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" +fi + +source "${ZINIT_HOME}/zinit.zsh"