読者です 読者をやめる 読者になる 読者になる

それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

Bash Completion for Mac OS X security command

osx

os x security command with bash completion

example

takuya@~/Desktop$ security
-i                               authorize                        delete-keychain                  get-identity-preference          set-keychain-password
-l                               cms                              dump-keychain                    help                             set-keychain-settings
-p                               create-db                        dump-trust-settings              import                           show-keychain-info
-q                               create-filevaultmaster-keychain  error                            install-mds                      trust-settings-export
-v                               create-keychain                  execute-with-privileges          leaks                            trust-settings-import
add-certificates                 create-keypair                   export                           list-keychains                   unlock-keychain
add-generic-password             default-keychain                 find-certificate                 lock-keychain                    user-trust-settings-enable
add-internet-password            delete-certificate               find-generic-password            login-keychain                   verify-cert
add-trusted-cert                 delete-generic-password          find-identity                    remove-trusted-cert
authorizationdb                  delete-internet-password         find-internet-password           set-identity-preference

How to install

copy into bash_completion directory

  • ~/bash_completion.d # for user
  • /usr/local/etc/bash_completion.d # for homebrew
  • /etc/bash_completion.d # for osx

source

gist.github.com

広告を非表示にする