diff options
-rwxr-xr-x | bin/bin/password | 7 | ||||
-rwxr-xr-x | bin/bin/username | 4 | ||||
-rw-r--r-- | vim/.vimrc | 6 |
3 files changed, 11 insertions, 6 deletions
diff --git a/bin/bin/password b/bin/bin/password index f94379a..ffcbb7e 100755 --- a/bin/bin/password +++ b/bin/bin/password @@ -1,2 +1,7 @@ #!/usr/bin/env bash -passmenu + +# Username in primary, password in clipboard + +target=$(find "$HOME/.password-store/" -name "*.gpg" -printf "%P\\n" | dmenu -i -p "Get identifier for:") +basename "$target" .gpg | xclip -i -selection "primary" +pass show --clip "${target%.gpg}" diff --git a/bin/bin/username b/bin/bin/username deleted file mode 100755 index b124733..0000000 --- a/bin/bin/username +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -target=$(find $HOME/.password-store/ -name "*.gpg" -printf "%P\n" | dmenu -i -p "Get identifier for:") -basename $target .gpg | xclip -i @@ -95,7 +95,6 @@ map gs <Plug>(easymotion-prefix) " Fuzzy finder nnoremap <c-p>a :Ag nnoremap <c-p>b :Buffers<cr> -nnoremap <c-p>c :Commands<cr> nnoremap <c-p>C :Colors<cr> nnoremap <c-p>f :Files<cr> nnoremap <c-p>g :GitFiles<cr> @@ -105,6 +104,11 @@ nnoremap <c-p>/ :History/<cr> nnoremap <c-p>l :BLines<cr> nnoremap <c-p>m :Marks<cr> nnoremap <c-p>t :Tags<cr> +nnoremap <c-p>a :Ag + +nnoremap <a-b> :Buffers<cr> +nnoremap <a-f> :Files<cr> +nnoremap <a-g> :GitFiles<cr> " LLDB nnoremap <c-d>n :LLsession new<cr> |