mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-07-31 23:32:06 +01:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
use ../../nu-complete "nu-complete pass-files"
|
||||
|
||||
# Prompt for and insert a new OTP key.
|
||||
export extern "pass otp insert" [
|
||||
name?: string@"nu-complete pass-files" # The name of the password entry to insert the OTP key into. If not provided, the URI label is used.
|
||||
--force(-f) # Do not prompt before overwriting an existing URI.
|
||||
--echo(-e) # Echo the input.
|
||||
--secret(-s) # Prompt for the OTP secret, assuming SHA1 algorithm, 30-second period, and 6 OTP digits. If set, one of --issuer or --account is also required. If not set, prompt for a key URI.
|
||||
--issuer(-i): string # The issuer of the OTP key.
|
||||
--account(-a): string # The account the OTP key belongs to.
|
||||
]
|
||||
|
||||
# Appends an OTP key URI to an existing password file.
|
||||
export extern "pass otp append" [
|
||||
name: string@"nu-complete pass-files" # The name of the password entry to insert the OTP key into.
|
||||
--force(-f) # Do not prompt before overwriting an existing URI.
|
||||
--echo(-e) # Echo the input.
|
||||
--secret(-s) # Prompt for the OTP secret, assuming SHA1 algorithm, 30-second period, and 6 OTP digits. If set, one of --issuer or --account is also required. If not set, prompt for a key URI.
|
||||
--issuer(-i): string # The issuer of the OTP key.
|
||||
--account(-a): string # The account the OTP key belongs to.
|
||||
]
|
||||
|
||||
# Display the key URI stored in the given password entry.
|
||||
export extern "pass otp uri" [
|
||||
name: string@"nu-complete pass-files" # The name of the password entry.
|
||||
--clip(-c) # Put the URI on the clipboard.
|
||||
--qrcode(-q) # Output the URI as a QR code.
|
||||
]
|
||||
|
||||
# Test if the given URI is a valid OTP key URI.
|
||||
export extern "pass otp validate" [
|
||||
uri: string # The URI to validate.
|
||||
]
|
||||
|
||||
# Generate an OTP code.
|
||||
export extern "pass otp" [
|
||||
name: string@"nu-complete pass-files" # The name of the password entry containing the OTP secret.
|
||||
--clip(-c) # Put the OTP code on the clipboard and clear it after 45 seconds.
|
||||
]
|
||||
|
||||
export alias "pass otp code" = pass otp
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
use ../../nu-complete "nu-complete pass-files"
|
||||
|
||||
# Interactively update a set of passwords.
|
||||
export extern "pass update" [
|
||||
...paths: string@"nu-complete pass-files" # The passwords and/or directories to update.
|
||||
--clip(-c) # Write the password to the clipboard.
|
||||
--no-symbols(-n) # Do not use any non-alphanumeric characters.
|
||||
--length(-l): int = 25 # Provide a password length.
|
||||
--provide(-p) # Let the user specify a password by hand.
|
||||
--multiline(-m) # Update multiline passwords. If not set, only the first line of a password file is updated.
|
||||
--include(-i): string # Only update the passwords that match a regex.
|
||||
--exclude(-e): string # Do not update the passwords that match a regex.
|
||||
--edit(-E) # Edit the passwords using the default editor.
|
||||
--force(-f) # Force update.
|
||||
--version(-V) # Show version information.
|
||||
--help(-h) # Print a help message.
|
||||
]
|
||||
Reference in New Issue
Block a user