Browse Source

Added GPG aliases

red-hat-laptop
Kevin Mok 5 years ago
parent
commit
e6acbe0648
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 21
      aliases/zsh_aliases
  2. 1
      configs/ranger/rc.conf
  3. 2
      configs/ranger/rifle.conf
  4. 7
      configs/ranger/scope.sh
  5. 1
      dotfiles/.vimrc
  6. 1
      dotfiles/.zshrc
  7. 1
      txt/key_dirs.txt
  8. 6
      txt/pacman-pkgs/nzxt-pkgs.txt

21
aliases/zsh_aliases

@ -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

1
configs/ranger/rc.conf

@ -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

2
configs/ranger/rifle.conf

@ -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"

7
configs/ranger/scope.sh

@ -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
}

1
dotfiles/.vimrc

@ -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()

1
dotfiles/.zshrc

@ -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 {{{ #

1
txt/key_dirs.txt

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

6
txt/pacman-pkgs/nzxt-pkgs.txt

@ -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
Loading…
Cancel
Save