summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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