Added GPG aliases

This commit is contained in:
2018-12-07 05:06:04 -05:00
parent 2b55781ab8
commit e6acbe0648
8 changed files with 38 additions and 2 deletions

View File

@@ -49,7 +49,6 @@ alias mkex="chmod 777"
alias ctle="systemctl enable"
alias ctls="systemctl start"
# mounting {{{ #
alias udm="udisksctl mount -b"
@@ -59,6 +58,13 @@ alias udub="udisksctl unmount -b /dev/sdc2"
# }}} mounting #
alias tc="touch"
shrm() {
for file in "$@"; do
shred "$file" && rm "$file"
done
}
# }}} command line related #
# directory-related {{{ #
@@ -185,6 +191,17 @@ alias rmsw="rm .sw*"
function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; }
alias rx="redshift -x"
alias gpe="gpg --encrypt --recipient"
alias gpd="gpg --decrypt"
alias ps="pass"
alias psc="pass -c"
alias pse="pass edit"
alias psi="pass insert -m"
alias psg="pass generate -c"
alias yh="echo 'kevin.mok@live.ca' | xclip -selection clipboard"
alias yg="xclip -selection clipboard ~/.password-store/social/gmail"
# python related {{{ #
function grpy() { grep $1 *.py ; }
alias p3="python3"
@@ -234,7 +251,7 @@ alias gcamp="ga && git commit --amend --no-edit -S && gpsf"
# todo: fix
function gcm(){ echo git commit -m \""$1"\" ; }
function psg() {
function psgi() {
git add .
git commit -m '.'
git push

View File

@@ -164,6 +164,7 @@ set show_cursor false
# One of: size, natural, basename, atime, ctime, mtime, type, random
set sort natural
# set sort extension
# Additional sorting options
set sort_reverse false

View File

@@ -223,5 +223,7 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
# ext gpg = pass edit -- "$1"
# The very last action, so that it's never triggered accidentally, is to execute a program:
mime application/x-executable = "$1"

View File

@@ -83,6 +83,13 @@ handle_extension() {
lynx -dump -- "${FILE_PATH}" && exit 5
elinks -dump "${FILE_PATH}" && exit 5
;; # Continue with next handler on failure
# htm|html|xhtml)
# # Preview as text conversion
# w3m -dump "${FILE_PATH}" && exit 5
# lynx -dump -- "${FILE_PATH}" && exit 5
# elinks -dump "${FILE_PATH}" && exit 5
# ;; # Continue with next handler on failure
esac
}

View File

@@ -154,6 +154,7 @@ Plug 'PotatoesMaster/i3-vim-syntax'
" vim file explorer
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'terryma/vim-multiple-cursors'
let g:multi_cursor_select_all_word_key='<C-a>'
call plug#end()

View File

@@ -164,6 +164,7 @@ source /home/kevin/.shortcuts
add-zsh-hook -Uz chpwd (){ ls -a; }
export GPG_TTY=$(tty)
export PASSWORD_STORE_CLIP_TIME=120
# perl {{{ #

View File

@@ -9,6 +9,7 @@ k /home/kevin/
lc /home/kevin/linux-config/
m /run/media
o /
p /home/kevin/.password-store
# }}} sys *

View File

@@ -45,6 +45,7 @@ htop-vim-git
i3-gaps
i3blocks-git
i3status
imv
imwheel
inetutils
iniparser
@@ -73,7 +74,9 @@ netctl
noto-fonts
ntfs-3g
nvidia
openssh
pacman
pass
patch
pciutils
pdfgrep
@@ -88,6 +91,7 @@ python-pip
python-pywal
python-setuptools
qdirstat
qrencode
ranger
redshift
reiserfsprogs
@@ -110,6 +114,7 @@ texlive-local-algorithmicx
texlive-local-algorithms
texlive-local-enumitem
texlive-local-hyperref
texlive-local-multirow
texlive-local-numprint
texlive-local-pgfplots
texlive-local-tkz-base
@@ -183,4 +188,5 @@ xorg-xwininfo
xorg-xwud
zathura
zathura-pdf-poppler
zbar
zsh