File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 7474 # where `{pkg}` is the executable name of the package
7575 posixFunctions = map ( package : ''
7676 ${ package } () {
77- op plugin run -- ${ package } ;
77+ op plugin run -- ${ package } "$@" ;
7878 }
7979 '' ) pkg-exe-names ;
8080 fishFunctions = map ( package : ''
8181 function ${ package } --wraps "${ package } " --description "1Password Shell Plugin for ${ package } "
82- op plugin run -- ${ package }
82+ op plugin run -- ${ package } $argv
8383 end
8484 '' ) pkg-exe-names ;
8585 packages = lib . optional ( cfg . package != null ) cfg . package ++ cfg . plugins ;
8686 in mkIf cfg . enable ( mkMerge [
87- ( {
88- # for Fish its the same option path between NixOS vs. home-manager
89- fish . interactiveShellInit = strings . concatStringsSep "\n " fishFunctions ;
90- } // optionalAttrs is-home-manager {
87+ (
88+ optionalAttrs is-home-manager {
9189 programs = {
9290 # for the Bash and Zsh home-manager modules,
9391 # the initExtra option is equivalent to Fish's interactiveShellInit
92+ fish . interactiveShellInit = strings . concatStringsSep "\n " fishFunctions ;
9493 bash . initExtra = strings . concatStringsSep "\n " posixFunctions ;
9594 zsh . initExtra = strings . concatStringsSep "\n " posixFunctions ;
9695 } ;
You can’t perform that action at this time.
0 commit comments