diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-03-18 15:43:43 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-03-18 15:43:43 +0530 |
commit | b4c628fe9fef514d70bb2e0138260e976107b610 (patch) | |
tree | 820428329c9db40e95cfa6a9fc729911f4146283 | |
parent | b7586c2cf1bec21799873ffb0e8698f358fa2e5e (diff) |
.bashrc+tofi-askpass: setting SUDO_ASKPASS for tofi
-rw-r--r-- | .bashrc | 1 | ||||
-rwxr-xr-x | .local/bin/tofi-askpass | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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 |