Skip to content

Commit

Permalink
Better lastpass menu, remove unused dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Apr 2, 2017
1 parent 90c6d83 commit d5a5754
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 28 deletions.
15 changes: 6 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@
[submodule "vim/.vim/bundle/editorconfig-vim"]
path = vim/.vim/bundle/editorconfig-vim
url = https://github.com/editorconfig/editorconfig-vim
[submodule "vim/.vim/bundle/completor.vim"]
path = vim/.vim/bundle/completor.vim
url = https://github.com/maralla/completor.vim
[submodule "vim/.vim/bundle/codi.vim"]
path = vim/.vim/bundle/codi.vim
url = https://github.com/metakirby5/codi.vim
[submodule "zsh/.fzf"]
path = zsh/.fzf
url = https://github.com/junegunn/fzf.git
Expand All @@ -110,15 +116,6 @@
[submodule "zsh/.zsh/bundle/base16-shell"]
path = zsh/.zsh/bundle/base16-shell
url = https://github.com/chriskempson/base16-shell
[submodule "zsh/.zsh/bundle/async"]
path = zsh/.zsh/bundle/async
url = https://github.com/mafredri/zsh-async
[submodule "zsh/.zsh/bundle/alias-tips"]
path = zsh/.zsh/bundle/alias-tips
url = https://github.com/djui/alias-tips
[submodule "vim/.vim/bundle/completor.vim"]
path = vim/.vim/bundle/completor.vim
url = https://github.com/maralla/completor.vim
[submodule "vim/.vim/bundle/codi.vim"]
path = vim/.vim/bundle/codi.vim
url = https://github.com/metakirby5/codi.vim
6 changes: 1 addition & 5 deletions bspwm/.config/dmenu/lpassmenu
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/usr/bin/env bash

IFS="\n"
password_list=("$(lpass ls | sed -e 's/ \[/\n/g' -e 's/\]//g' | sed -e '/id:/d' -e '/^\s*$/d')")
password=$(printf '%s\n' "${password_list[@]}" | dmenu "$@")

password=$(lpass ls | dmenu "$@" | awk '{print $(NF)}' | sed 's/\]//g')
[[ -n $password ]] || exit

lpass show --password -c "$password"
2 changes: 1 addition & 1 deletion zsh/.fzf
Submodule .fzf updated 3 files
+1 −1 README.md
+3 −0 man/man1/fzf.1
+1 −0 src/options.go
1 change: 0 additions & 1 deletion zsh/.zsh/bundle/async
Submodule async deleted from d95adb
12 changes: 0 additions & 12 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ fi
# Load base16 theme
[ -z $BASE16_THEME ] && base16_solarized-dark

unalias z
z() {
local dir
dir="$(fasd -Rdl "$1" | fzf -1 -0 --height 40% --no-sort +m)" && cd "${dir}" || return 1
}

unalias v
v() {
local file
file="$(fasd -Rfl "$1" | fzf -1 -0 --height 40% --no-sort +m)" && vim "${file}" || return 1
}

# }}}

# User configuration {{{
Expand Down

0 comments on commit d5a5754

Please sign in to comment.