From 96fcc6aec40db91359b6578b840aeef73844f125 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 29 Dec 2024 03:25:05 -0800 Subject: [PATCH] feat: add alexandria quick access script --- reference/users/youwen/hm.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reference/users/youwen/hm.nix b/reference/users/youwen/hm.nix index 8a15215..c681359 100644 --- a/reference/users/youwen/hm.nix +++ b/reference/users/youwen/hm.nix @@ -78,5 +78,22 @@ vim end ''; + + alexa = '' + set vault_dir $HOME/Documents/alexandria/content + + if test -d $vault_dir + cd $vault_dir + git pull + vim + else + echo "Vault is not yet cloned. Cloning repository now." + mkdir -p $HOME/Documents + cd $HOME/Documents + git clone git@code.youwen.dev:youwen5/alexandria.git + cd $vault_dir + vim + end + ''; }; }