about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-23 21:25:53 +0100
committerSoispha <soispha@vhack.eu>2024-02-23 21:25:53 +0100
commit9cafe292c814a02ab5f4fdeadc9393013c5a701c (patch)
tree6f986c41c7bbef57a4b80c588dadd2fedff00cd6
parentfeat(sys/svcs/nix): Switch to nixUnstable (diff)
downloadnixos-config-9cafe292c814a02ab5f4fdeadc9393013c5a701c.tar.gz
nixos-config-9cafe292c814a02ab5f4fdeadc9393013c5a701c.zip
style(treewide): Format
-rwxr-xr-xhm/soispha/conf/lf/commands/scripts/execute.sh2
-rw-r--r--hm/soispha/pkgs/scripts.nix2
-rwxr-xr-xhm/soispha/pkgs/scripts/apps/git-edit-index.sh40
-rw-r--r--sys/nixpkgs/pkgs/plgs-pkgs/plugins/plugins.md2
4 files changed, 23 insertions, 23 deletions
diff --git a/hm/soispha/conf/lf/commands/scripts/execute.sh b/hm/soispha/conf/lf/commands/scripts/execute.sh
index 601acbb8..15db0b70 100755
--- a/hm/soispha/conf/lf/commands/scripts/execute.sh
+++ b/hm/soispha/conf/lf/commands/scripts/execute.sh
@@ -12,7 +12,7 @@ fs="$fs"
 # shellcheck disable=SC2269
 id="$id"
 
-dir="$(realpath "$f")";
+dir="$(realpath "$f")"
 
 "$dir"
 
diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix
index 6598880d..cbd1f115 100644
--- a/hm/soispha/pkgs/scripts.nix
+++ b/hm/soispha/pkgs/scripts.nix
@@ -116,7 +116,7 @@
         git
         gnused
         # $EDITOR
-
+        
         ;
     };
   };
diff --git a/hm/soispha/pkgs/scripts/apps/git-edit-index.sh b/hm/soispha/pkgs/scripts/apps/git-edit-index.sh
index 368b99dc..2088c314 100755
--- a/hm/soispha/pkgs/scripts/apps/git-edit-index.sh
+++ b/hm/soispha/pkgs/scripts/apps/git-edit-index.sh
@@ -38,13 +38,13 @@ ARGUMENTS:
 EOF
 }
 
-GIT_DIR="$(git rev-parse --show-toplevel)";
+GIT_DIR="$(git rev-parse --show-toplevel)"
 materialize_file() {
-    git diff --cached "$1" > "$GIT_DIR/.git/EDIT_INDEX_PATCH"
+    git diff --cached "$1" >"$GIT_DIR/.git/EDIT_INDEX_PATCH"
 
     git add "$1"
     git restore --staged "$1"
-    cat "$1" > "$GIT_DIR/.git/EDIT_INDEX_FILE"
+    cat "$1" >"$GIT_DIR/.git/EDIT_INDEX_FILE"
     git restore "$1"
 
     git apply "$GIT_DIR/.git/EDIT_INDEX_PATCH"
@@ -55,37 +55,37 @@ materialize_file() {
 }
 
 edit() {
-    files_to_add="$(mktmp)";
-    realpath --relative-to=. "$@" >"$files_to_add";
+    files_to_add="$(mktmp)"
+    realpath --relative-to=. "$@" >"$files_to_add"
 
-    index_files="$(mktmp)";
+    index_files="$(mktmp)"
     git diff --name-only --cached --diff-filter=AM >"$index_files"
 
     while read -r file; do
         if grep -q "$file" "$files_to_add"; then
-            sed -i "s|$file||" "$files_to_add";
-            materialize_file "$file";
+            sed -i "s|$file||" "$files_to_add"
+            materialize_file "$file"
         fi
     done <"$index_files"
 
-    files_to_check="$(mktmp)";
-    clean "$files_to_add" > "$files_to_check"
-    if [ "$(wc -l < "$files_to_check")" -gt 0 ]; then
+    files_to_check="$(mktmp)"
+    clean "$files_to_add" >"$files_to_check"
+    if [ "$(wc -l <"$files_to_check")" -gt 0 ]; then
         warn "Could not edit every file:"
-        cat "$files_to_add";
+        cat "$files_to_add"
     fi
 }
 
 for arg in "$@"; do
     case "$arg" in
-        "--help" | "-h")
-            help;
-            ;;
-        "--version" | "-v")
-            version;
-            ;;
-        "--")
-            break;
+    "--help" | "-h")
+        help
+        ;;
+    "--version" | "-v")
+        version
+        ;;
+    "--")
+        break
         ;;
     esac
 done
diff --git a/sys/nixpkgs/pkgs/plgs-pkgs/plugins/plugins.md b/sys/nixpkgs/pkgs/plgs-pkgs/plugins/plugins.md
index 2c0838b0..9214c823 100644
--- a/sys/nixpkgs/pkgs/plgs-pkgs/plugins/plugins.md
+++ b/sys/nixpkgs/pkgs/plgs-pkgs/plugins/plugins.md
@@ -1,4 +1,4 @@
- - Plugin count: 4
+- Plugin count: 4
 
 | Repo | Last Update | Nix package name | Last checked |
 |:---|:---|:---|:---|