GithubHelp home page GithubHelp logo

ibizaman / pass-clip Goto Github PK

View Code? Open in Web Editor NEW
33.0 4.0 8.0 26 KB

A pass extension that lets you quickly copy to clipboard passwords using fzf or rofi

License: GNU General Public License v3.0

Makefile 13.23% Shell 58.57% Roff 28.20%
pass password password-manager pass-extension password-store

pass-clip's Introduction

pass clip 0.3 build status

A pass extension that lets you quickly copy to clipboard passwords using fzf or rofi.

Usage

Usage:
    pass clip [options]
        Provide an interactive solution to copy passwords to the
        clipboard. It will show all pass-names in either fzf or rofi,
        waits for the user to select one then copy it to the clipboard.
        The user can select fzf or rofi by giving either --fzf or
        --rofi.  By default, rofi will be selected and pass-clip will
        fallback to fzf. If the selected password does not exist, a new
        one will be generated automatically then copied to the
        clipboard. Specific password length can be given using --length
        and no symbols can be activated with --no-symbols. Note the
        latter two options must be given on the command line, one cannot
        specify them through fzf or rofi.

    Options:
        -f, --fzf        Use fzf to select pass-name.
        -r, --rofi       Use rofi to select pass-name.
        -n, --no-symbols Do not use any non-alphanumeric characters.
        -l, --length     Provide a password length.

Examples

Clip Social/facebook.com with rofi

$ pass clip --rofi
# rofi pops up, user selects Social/facebook.com
Copied Social/facebook.com to clipboard. Will clear in 45 seconds.

Clip Social/facebook.com with fzf

$ pass clip --fzf
# fzf pops up, user selects Social/facebook.com
Copied Social/facebook.com to clipboard. Will clear in 45 seconds.

Clip Social/facebook.com with rofi as default, fzf as fallback

$ pass clip
# rofi pops up if possible, otherwise fzf, user selects Social/facebook.com
Copied Social/facebook.com to clipboard. Will clear in 45 seconds.

Clip new New/website.com passfile with rofi as default, fzf as fallback

$ pass clip
# rofi pops up if possible, otherwise fzf, user writes New/website.com
Add generated password for New/website.com.
Copied New/website.com to clipboard. Will clear in 45 seconds.

Installation

ArchLinux

pacaur -S pass-clip

Other linuxes

git clone https://github.com/ibizaman/pass-clip/
cd pass-clip
sudo make install

Requirements

  • pass 1.7.0 or greater.
  • If you do not want to install this extension as system extension, you need to enable user extension with PASSWORD_STORE_ENABLE_EXTENSIONS=true pass. You can create an alias in .bashrc: alias pass='PASSWORD_STORE_ENABLE_EXTENSIONS=true pass'

Contribution

Feedback, contributors, pull requests are all very welcome.

Acknowledgments

Thanks to roddhjav for creating pass-update from which this script is heavily inspired.

License

Copyright (C) 2017  Pierre PENNINCKX

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

pass-clip's People

Contributors

edwinhoksberg avatar ibizaman avatar msfjarvis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pass-clip's Issues

Silently fails if rofi is not available

I have fzf installed and rofi not, but if I try to invoke pass clip then it fails silently.
Maybe this is already fixed in the commits since the latest release tough and you should simply make a new release ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.