diff --git a/nushell/config/aliases.nu b/nushell/config/aliases.nu index 49651fd..1861e2f 100644 --- a/nushell/config/aliases.nu +++ b/nushell/config/aliases.nu @@ -70,6 +70,6 @@ def to-md [] { # Useful aliases alias v = nvim alias :q = exit -alias pdf = evince +alias pdf = pueue add evince alias rg = rg -uu def-env mkcd [dir: string] { mkdir $dir; cd $dir } diff --git a/nushell/config/pass.nu b/nushell/config/pass.nu index 853eccc..e03c718 100644 --- a/nushell/config/pass.nu +++ b/nushell/config/pass.nu @@ -19,6 +19,10 @@ def _pass_completion [] { } export extern "pass" [ host?: string@_pass_completion ] + def p [ arg: string@_pass_completion ] { pass $arg } def pc [ arg: string@_pass_completion ] { pass --clip $arg } - +def ppdf [p: string] { + pc thomas/key/pdf + pueue add evince $p +}