made gpg cleanup simpler and more robust
This commit is contained in:
parent
1ebd534a96
commit
2ee07d2743
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ alias telnet='telnet -e "#"'
|
|||
alias picocom='picocom -b 115200'
|
||||
alias netcat='netcat -q -1 -vv'
|
||||
alias svn_mime_set='for a in $(find ./ -type f -not -regex ".*\.svn.*"); do svn pset svn:mime-type $(file --mime-type $a | sed "s/ *//g;s/[^:]*://g") $a; done;'
|
||||
alias clean-gpg='for a in $(gpg2 -k | grep "^pub" | awk "BEGIN {} {print $2}" | sed "s/[0-9]*[DR]\///"); do gpg2 --quiet --no-tty --edit-key $a clean save; done;'
|
||||
|
||||
alias clean-gpg='for a in $(gpg -k | sed -rn 's/pub +[0-9]+[DR]\/(0x[0-9A-Fa-f]+).*/\1/p'); do gpg2 --quiet --no-tty --edit-key $a clean save; done;'
|
||||
alias alert='notify-send --urgency=low -i "$([ $? -eq 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
alias git-patch='git diff --minimal --find-renames --find-copies --relative ./ > ../$(basename `pwd`).patch && git co -- ./'
|
||||
alias ssh-add-all='for a in .ssh/id_*; do ssh-add $a; done;'
|
||||
|
|
Loading…
Reference in a new issue