summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-03-18 15:43:43 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-03-18 15:43:43 +0530
commitb4c628fe9fef514d70bb2e0138260e976107b610 (patch)
tree820428329c9db40e95cfa6a9fc729911f4146283
parentb7586c2cf1bec21799873ffb0e8698f358fa2e5e (diff)
.bashrc+tofi-askpass: setting SUDO_ASKPASS for tofi
-rw-r--r--.bashrc1
-rwxr-xr-x.local/bin/tofi-askpass2
2 files changed, 3 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 029d21d..2eee29e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -40,6 +40,7 @@ set -o ignoreeof
export PATH="$PATH:$HOME/.scripts"
# Adds `~/.local/bin` to $PATH
export PATH="$PATH:$HOME/.local/bin"
+export SUDO_ASKPASS="$HOME/.local/bin/tofi-askpass"
#infinite history
diff --git a/.local/bin/tofi-askpass b/.local/bin/tofi-askpass
new file mode 100755
index 0000000..146ba9b
--- /dev/null
+++ b/.local/bin/tofi-askpass
@@ -0,0 +1,2 @@
+#!/bin/sh
+tofi --prompt-text "Password: " --hide-input true --require-match false < /dev/null