Added GPG aliases
This commit is contained in:
@@ -49,7 +49,6 @@ alias mkex="chmod 777"
|
|||||||
alias ctle="systemctl enable"
|
alias ctle="systemctl enable"
|
||||||
alias ctls="systemctl start"
|
alias ctls="systemctl start"
|
||||||
|
|
||||||
|
|
||||||
# mounting {{{ #
|
# mounting {{{ #
|
||||||
|
|
||||||
alias udm="udisksctl mount -b"
|
alias udm="udisksctl mount -b"
|
||||||
@@ -59,6 +58,13 @@ alias udub="udisksctl unmount -b /dev/sdc2"
|
|||||||
|
|
||||||
# }}} mounting #
|
# }}} mounting #
|
||||||
|
|
||||||
|
alias tc="touch"
|
||||||
|
shrm() {
|
||||||
|
for file in "$@"; do
|
||||||
|
shred "$file" && rm "$file"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# }}} command line related #
|
# }}} command line related #
|
||||||
|
|
||||||
# directory-related {{{ #
|
# directory-related {{{ #
|
||||||
@@ -185,6 +191,17 @@ alias rmsw="rm .sw*"
|
|||||||
function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; }
|
function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; }
|
||||||
alias rx="redshift -x"
|
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 {{{ #
|
# python related {{{ #
|
||||||
function grpy() { grep $1 *.py ; }
|
function grpy() { grep $1 *.py ; }
|
||||||
alias p3="python3"
|
alias p3="python3"
|
||||||
@@ -234,7 +251,7 @@ alias gcamp="ga && git commit --amend --no-edit -S && gpsf"
|
|||||||
# todo: fix
|
# todo: fix
|
||||||
function gcm(){ echo git commit -m \""$1"\" ; }
|
function gcm(){ echo git commit -m \""$1"\" ; }
|
||||||
|
|
||||||
function psg() {
|
function psgi() {
|
||||||
git add .
|
git add .
|
||||||
git commit -m '.'
|
git commit -m '.'
|
||||||
git push
|
git push
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ set show_cursor false
|
|||||||
|
|
||||||
# One of: size, natural, basename, atime, ctime, mtime, type, random
|
# One of: size, natural, basename, atime, ctime, mtime, type, random
|
||||||
set sort natural
|
set sort natural
|
||||||
|
# set sort extension
|
||||||
|
|
||||||
# Additional sorting options
|
# Additional sorting options
|
||||||
set sort_reverse false
|
set sort_reverse false
|
||||||
|
|||||||
@@ -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 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" -- "$@"
|
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:
|
# The very last action, so that it's never triggered accidentally, is to execute a program:
|
||||||
mime application/x-executable = "$1"
|
mime application/x-executable = "$1"
|
||||||
|
|||||||
@@ -83,6 +83,13 @@ handle_extension() {
|
|||||||
lynx -dump -- "${FILE_PATH}" && exit 5
|
lynx -dump -- "${FILE_PATH}" && exit 5
|
||||||
elinks -dump "${FILE_PATH}" && exit 5
|
elinks -dump "${FILE_PATH}" && exit 5
|
||||||
;; # Continue with next handler on failure
|
;; # 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
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ Plug 'PotatoesMaster/i3-vim-syntax'
|
|||||||
" vim file explorer
|
" vim file explorer
|
||||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||||
Plug 'terryma/vim-multiple-cursors'
|
Plug 'terryma/vim-multiple-cursors'
|
||||||
|
let g:multi_cursor_select_all_word_key='<C-a>'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ source /home/kevin/.shortcuts
|
|||||||
add-zsh-hook -Uz chpwd (){ ls -a; }
|
add-zsh-hook -Uz chpwd (){ ls -a; }
|
||||||
|
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
|
export PASSWORD_STORE_CLIP_TIME=120
|
||||||
|
|
||||||
# perl {{{ #
|
# perl {{{ #
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ k /home/kevin/
|
|||||||
lc /home/kevin/linux-config/
|
lc /home/kevin/linux-config/
|
||||||
m /run/media
|
m /run/media
|
||||||
o /
|
o /
|
||||||
|
p /home/kevin/.password-store
|
||||||
|
|
||||||
# }}} sys *
|
# }}} sys *
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ htop-vim-git
|
|||||||
i3-gaps
|
i3-gaps
|
||||||
i3blocks-git
|
i3blocks-git
|
||||||
i3status
|
i3status
|
||||||
|
imv
|
||||||
imwheel
|
imwheel
|
||||||
inetutils
|
inetutils
|
||||||
iniparser
|
iniparser
|
||||||
@@ -73,7 +74,9 @@ netctl
|
|||||||
noto-fonts
|
noto-fonts
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
nvidia
|
nvidia
|
||||||
|
openssh
|
||||||
pacman
|
pacman
|
||||||
|
pass
|
||||||
patch
|
patch
|
||||||
pciutils
|
pciutils
|
||||||
pdfgrep
|
pdfgrep
|
||||||
@@ -88,6 +91,7 @@ python-pip
|
|||||||
python-pywal
|
python-pywal
|
||||||
python-setuptools
|
python-setuptools
|
||||||
qdirstat
|
qdirstat
|
||||||
|
qrencode
|
||||||
ranger
|
ranger
|
||||||
redshift
|
redshift
|
||||||
reiserfsprogs
|
reiserfsprogs
|
||||||
@@ -110,6 +114,7 @@ texlive-local-algorithmicx
|
|||||||
texlive-local-algorithms
|
texlive-local-algorithms
|
||||||
texlive-local-enumitem
|
texlive-local-enumitem
|
||||||
texlive-local-hyperref
|
texlive-local-hyperref
|
||||||
|
texlive-local-multirow
|
||||||
texlive-local-numprint
|
texlive-local-numprint
|
||||||
texlive-local-pgfplots
|
texlive-local-pgfplots
|
||||||
texlive-local-tkz-base
|
texlive-local-tkz-base
|
||||||
@@ -183,4 +188,5 @@ xorg-xwininfo
|
|||||||
xorg-xwud
|
xorg-xwud
|
||||||
zathura
|
zathura
|
||||||
zathura-pdf-poppler
|
zathura-pdf-poppler
|
||||||
|
zbar
|
||||||
zsh
|
zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user