NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(detect-vscode-for-git): improve detection for desktop users

Also bump package version to v0.2.0 now btw, alongside updating my
GPG fingerprints list.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+16 -5
+9 -3
misc/bash/lib/detect-vscode-for-git
··· 1 1 #!/usr/bin/env bash 2 2 # SPDX-License-Identifier: MPL-2.0 3 - # Sets EDITOR and related variables to use VS Code instead of firing up nano (or worse vi), 4 - # based on env var detection of VSCODE_* vars. Utilized by git-commit and similar git commands 5 - # that fire up an editor. 3 + # Sets EDITOR and related variables to use VS Code instead of firing up nano (or worse vi) on 4 + # your VS Code terminals, based on env var detection of VSCODE_* vars. Utilized by git-commit 5 + # and similar git commands that fire up an editor, among others. 6 6 7 7 # Handle verbose logging 8 8 log() { ··· 19 19 20 20 # If it is, set the path to the correct location 21 21 __VSCODE_STABLE_CLI_PATH="${__VSCODE_BASE_PATH}/bin/remote-cli/code" 22 + __VSCODE_STABLE_DESKTOP_PATH="${__VSCODE_BASE_PATH}/bin/code" 22 23 __VSCODE_INSIDERS_CLI_PATH="${__VSCODE_BASE_PATH}/bin/remote-cli/code-insiders" 24 + __VSCODE_INSIDERS_DESKTOP_PATH="${__VSCODE_BASE_PATH}/bin/code-insiders" 23 25 24 26 # Check if the stable or insiders version exists 25 27 if [[ -f "$__VSCODE_INSIDERS_CLI_PATH" ]]; then 26 28 VSCODE_CLI_PATH="$__VSCODE_INSIDERS_CLI_PATH" 27 29 elif [[ -f "$__VSCODE_STABLE_CLI_PATH" ]]; then 28 30 VSCODE_CLI_PATH="$__VSCODE_STABLE_CLI_PATH" 31 + elif [[ -f "$__VSCODE_INSIDERS_DESKTOP_PATH" ]]; then 32 + VSCODE_CLI_PATH="$__VSCODE_INSIDERS_DESKTOP_PATH" 33 + elif [[ -f "$__VSCODE_STABLE_DESKTOP_PATH" ]]; then 34 + VSCODE_CLI_PATH="$__VSCODE_STABLE_DESKTOP_PATH" 29 35 fi 30 36 31 37 log "Using VS Code CLI path: ${VSCODE_CLI_PATH}"
+1 -1
pkgs/detect-vscode-for-git.nix
··· 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "detect-vscode-for-git"; 5 - version = "0.1.0"; 5 + version = "0.2.0"; 6 6 7 7 src = ../misc/bash/lib/detect-vscode-for-git; 8 8
+6 -1
pkgs/maintainer-metadata.nix
··· 11 11 matrix = "@ajhalili2006@envs.net"; 12 12 keys = [ 13 13 { 14 - fingerprint = "4D5E 6317 58CB 9CC4 5941 B1CE 67BF C91B 3DA1 2BE8" 14 + # main key 15 + fingerprint = "4D5E 6317 58CB 9CC4 5941 B1CE 67BF C91B 3DA1 2BE8"; 16 + } 17 + { 18 + # recaptime.dev specifics 19 + fingerprint = "A715 100E 58CF 6050 0EE1 5965 2F38 4539 C700 B263"; 15 20 } 16 21 ]; 17 22 };