obdisian commands
This commit is contained in:
parent
3d05ac9a93
commit
8acfba9da8
2 changed files with 28 additions and 4 deletions
|
|
@ -16,10 +16,7 @@ let
|
|||
user = "osbm";
|
||||
identityFile = "/home/osbm/.ssh/id_ed25519";
|
||||
port = 8022;
|
||||
extraOptions = {
|
||||
"RemoteCommand" = "fish";
|
||||
"RequestTTY" = "force";
|
||||
};
|
||||
# fish not found error ???
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,6 +43,33 @@
|
|||
echo waking up ymir
|
||||
${pkgs.wakeonlan}/bin/wakeonlan 04:7c:16:e6:d9:13
|
||||
'')
|
||||
# obsidian tools
|
||||
# i need a background process that can just keep pulling and pushing changes just like the obsidian git plugin
|
||||
# (pkgs.writeShellScriptBin "rerouting-sync-start" ''
|
||||
# cd /storage/emulated/0/Documents/rerouting
|
||||
# git pull
|
||||
# git add --all
|
||||
# git commit -m "Android sync"
|
||||
# git push
|
||||
# '')
|
||||
(pkgs.writeShellScriptBin "cd-rerouting" ''
|
||||
cd /storage/emulated/0/Documents/rerouting
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "rerouting-status" ''
|
||||
cd /storage/emulated/0/Documents/rerouting
|
||||
git fetch
|
||||
git status
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "rerouting-pull" ''
|
||||
cd /storage/emulated/0/Documents/rerouting
|
||||
git pull
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "rerouting-push" ''
|
||||
cd /storage/emulated/0/Documents/rerouting
|
||||
git add --all
|
||||
git commit -m "Android sync"
|
||||
git push
|
||||
'')
|
||||
];
|
||||
|
||||
# Backup etc files instead of failing to activate generation if a file already exists in /etc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue