mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-17 20:52:09 -08:00
feat: add alexandria quick access script
Some checks are pending
Check flake / check (push) Waiting to run
Some checks are pending
Check flake / check (push) Waiting to run
This commit is contained in:
parent
a684af72a0
commit
96fcc6aec4
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue