Skip to content

Commit

Permalink
VM: Fish: SFT updating function
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukant Hajra committed Feb 5, 2024
1 parent 65a3aea commit f555951
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions home/target/shajra/programs/fish/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
interactiveShellInit = ''
set --export --universal SFT_AUTH_SOCK (
find /var/run/sftd/client_trust_forwarding/shajra \
-type s -exec stat -c "%Y %n" {} \; \
| sort -n | tail -n 1 | awk '{print $2}'
)
set --erase --global SFT_AUTH_SOCK
sft-update
'';

functions = {
sft-update = {
description = "Use latest SFT socket";
body = ''
set --export --universal SFT_AUTH_SOCK (
find /var/run/sftd/client_trust_forwarding/shajra \
-type s -exec stat -c "%Y %n" {} \; \
| sort -n | tail -n 1 | awk '{print $2}'
)
set --erase --global SFT_AUTH_SOCK || true
'';
};
groq-mr-slack = {
description = "Notify team of merge request";
body = ''
Expand Down

0 comments on commit f555951

Please sign in to comment.