Skip to content

Commit

Permalink
Exculdes temp files created by otter.nvim adds apps to aerospace conf
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkadutskyi committed Feb 26, 2025
1 parent 42d0bc3 commit 75527e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea
# Otter.nvim related files
*.otter.*
9 changes: 9 additions & 0 deletions users/nick/aerospace.nix
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@
"move-node-to-workspace S"
];
}
{
"if" = {
app-id = "com.panic.Transmit";
};
check-further-callbacks = true;
run = [
"move-node-to-workspace S"
];
}

# ----------------------------------------------------------------
# [M]anagement and communication workspace
Expand Down
11 changes: 8 additions & 3 deletions users/nick/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,15 @@ in
lib.hm.dag.entryAfter [ "writeBoundary" ]
# bash
''
CRM_ACCOUNTS=/Users/${systemUser}/Library/Mobile\ Documents/com~apple~CloudDocs/Projects
export CRM_ACCOUNTS USER
USER=${systemUser}
CRM_ACCOUNTS=/Users/$USER/Library/Mobile\ Documents/com~apple~CloudDocs/Projects
for acc_path in "$CRM_ACCOUNTS"/*/; do
acc_name="$(basename "$acc_path")"
for project_path in "$acc_path"/*/; do
project_name="$(basename "$project_path" | cut -d' ' -f1)"
if [[ $project_name =~ ^[0-9]+$ ]] && [ -f "$project_path/.project.json" ]; then
mkdir -p "/Users/${systemUser}/Developer/$acc_name/$project_name"
mkdir -p "/Users/$USER/Developer/$acc_name/$project_name"
fi
done
done
Expand All @@ -408,8 +410,11 @@ in
lib.hm.dag.entryAfter [ "writeBoundary" ]
# bash
''
export PKG_CURL PKG_BASH
PKG_BASH=${pkgs.bash}
PKG_CURL=${pkgs.curl}
if [ ! -d ~/Downloads/.snippety-helper ]; then
cd ~/Downloads && ${pkgs.bash}/bin/bash -c "$(${pkgs.curl}/bin/curl -fsSL https://snippety.app/SnippetyHelper-Installer.sh)"
cd ~/Downloads && "$PKG_BASH/bin/bash" -c "$("$PKG_CURL/bin/curl" -fsSL https://snippety.app/SnippetyHelper-Installer.sh)"
fi
'';
checkBashPermissions = # Required for snippety-helper
Expand Down

0 comments on commit 75527e0

Please sign in to comment.