feat: Adds arch specific scripts and removes raycast (macOS) specific scripts.

This commit is contained in:
2025-09-21 01:03:39 -04:00
parent 40fe096baa
commit d90146fde3
8 changed files with 103 additions and 145 deletions

View File

@@ -1,48 +0,0 @@
#!/bin/zsh -l
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title pass-attribute
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🗝️
# @raycast.argument1 { "type": "text", "placeholder": "Key" }
# @raycast.argument2 { "type": "text", "placeholder": "For" }
# @raycast.packageName Password
# Documentation:
# @raycast.description Get an attribute / key from the password store
# @raycast.author Michael Housh
# @raycast.authorURL https://github.com/m-housh
PREFIX="$HOME/.local/share/password-store"
PASS="$(command -v pass)"
#
# Begin program
#
[ -z "$PASS" ] && \
echo "Error: pass utility not found." && \
exit 1
key="$1"
file="$2"
selected=$(find "$PREFIX" -type f -name "$file.gpg")
# Check if we found a password file at the path.
[ -z "$selected" ] && \
echo "Path not found: $file" && \
exit 1
# Sanitize the path to work with the pass command.
selected="${selected//$PREFIX\//}"
selected="${selected//.gpg/}"
# Capture the result of searching for the key.
result=$("$PASS" get "$key" "$selected")
[ -z "$result" ] && echo "Key not found" && exit 1
echo "$result" | pbcopy
echo "$key: Copied to clipboard"

View File

@@ -1,47 +0,0 @@
#!/bin/zsh -l
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title pass-copy
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🔐
# @raycast.argument1 { "type": "text", "placeholder": "For" }
# @raycast.packageName Password
# Documentation:
# @raycast.description Copy password from password-store
# @raycast.author Michael Housh
# @raycast.authorURL https://github.com/m-housh
PREFIX="$HOME/.local/share/password-store"
LOG=/tmp/pass-copy.out
ISOSEC="$HOME/.local/share/scripts/isosec"
PASS="$(command -v pass)"
_log() {
echo "$($ISOSEC) $1" >> "$LOG"
}
#
# Begin program
#
[ -z "$PASS" ] && \
echo "Error: pass utility not found." && \
_log "Error: pass utility not found." && \
exit 1
selected=$(find "$PREFIX" -type f -name "$1".gpg)
[ -z "$selected" ] && \
_log "Error: Not Found" && \
_log "Input: $1" && \
exit 1
selected="${selected//$PREFIX\//}"
selected="${selected//.gpg/}"
_log "Running pass with selection: $selected"
"$PASS" --clip "$selected"

View File

@@ -1,33 +0,0 @@
#!/bin/zsh -l
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title pass-gen
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🔐
# @raycast.argument1 { "type": "text", "placeholder": "Path" }
# @raycast.packageName Password
# Documentation:
# @raycast.description Copy password from password-store
# @raycast.author Michael Housh
# @raycast.authorURL https://github.com/m-housh
PREFIX="$HOME/.local/share/password-store"
PASS="$(command -v pass)"
[ -z "$PASS" ] && \
echo "Error: pass utility not found." && \
exit 1
[ -z "$1" ] && \
echo "Error: must supply a name/path for the password" && \
exit 1
"$PASS" generate --clip "$1"
_log "Ending"

View File

@@ -1,17 +0,0 @@
#!/bin/bash
# Raycast Script Command Template
#
# Duplicate this file and remove ".template." from the filename to get started.
# See full documentation here: https://github.com/raycast/script-commands
#
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title My First Script
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.icon 🤖
# @raycast.packageName Raycast Scripts
echo "Hello from My First Script"