Add autosudo
This commit is contained in:
parent
dba2df59c7
commit
77589d6ce8
2 changed files with 11 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{
|
{pkgs, ... }: {
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
|
@ -9,7 +9,14 @@ programs = {
|
||||||
save = 100000;
|
save = 100000;
|
||||||
size = 100000;
|
size = 100000;
|
||||||
};
|
};
|
||||||
initExtra = builtins.readFile ./zshrc;
|
initExtra = let
|
||||||
|
print-pw = pkgs.writeShellScriptBin "print-pw" ''
|
||||||
|
pass space/olymp/apollo
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
''
|
||||||
|
export SUDO_ASKPASS="${print-pw}"/bin/print-pw
|
||||||
|
'' + builtins.readFile ./zshrc;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "colored-man-pages" "git-prompt" ];
|
plugins = [ "colored-man-pages" "git-prompt" ];
|
||||||
|
|
|
@ -35,7 +35,8 @@ precmd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
alias c=cdr
|
alias c=cdr
|
||||||
alias s='sudo systemctl'
|
alias sudo='sudo -A'
|
||||||
|
alias s='sudo -A systemctl'
|
||||||
alias u='systemctl --user'
|
alias u='systemctl --user'
|
||||||
alias m=man
|
alias m=man
|
||||||
alias t="tmux attach"
|
alias t="tmux attach"
|
||||||
|
|
Loading…
Reference in a new issue