From 79f16c7cf7780057dcdf7401f2b76662073100a7 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 17 Jun 2016 14:29:30 +0100 Subject: Rename script id to username --- bin/bin/id | 6 ------ bin/bin/username | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100755 bin/bin/id create mode 100755 bin/bin/username (limited to 'bin') diff --git a/bin/bin/id b/bin/bin/id deleted file mode 100755 index 7dad85d..0000000 --- a/bin/bin/id +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/bash -PWD_DIR="$HOME/.password-store" -[[ ! -z $(readlink ${PWD_DIR}) ]] && PWD_DIR=$(readlink ${PWD_DIR}) -PASSWORDS=$(locate "${PWD_DIR}/**/*.gpg") -TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Get identifier for:") -basename $TARGET .gpg | xclip -i diff --git a/bin/bin/username b/bin/bin/username new file mode 100755 index 0000000..37da88a --- /dev/null +++ b/bin/bin/username @@ -0,0 +1,6 @@ +#!/bin/bash +PWD_DIR="$HOME/.password-store" +[[ ! -z $(readlink ${PWD_DIR}) ]] && PWD_DIR=$(readlink ${PWD_DIR}) +PASSWORDS=$(locate "${PWD_DIR}/**/*.gpg") +TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Get identifier for:") +basename $TARGET .gpg | xclip -i -- cgit v1.2.3