Browse Source

Setup GPG and added key

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
7de5620da5
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 6
      aliases/zsh_aliases
  2. 2
      configs/i3/config
  3. 3
      dotfiles/.gitconfig
  4. 52
      dotfiles/.mygpg-key-default
  5. 8
      dotfiles/.vimrc
  6. 18
      dotfiles/.zshrc
  7. 4
      setup.sh

6
aliases/zsh_aliases

@ -199,7 +199,7 @@ alias gstr="git config credential.helper store"
# add {{{ # # add {{{ #
alias ga="git add -A . && gs" alias ga="git add -A . && gs"
alias gac="git add -A . && git commit"
alias gac="git add -A . && git commit -S"
# }}} add # # }}} add #
# diff/log {{{ # # diff/log {{{ #
@ -222,11 +222,11 @@ alias gheadm1="git reset --hard HEAD~1"
alias gls="git ls-tree -r HEAD --name-only" alias gls="git ls-tree -r HEAD --name-only"
# push {{{ # # push {{{ #
alias egc="nvim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
alias vgc="ni commit-msg.txt"
alias gst="git stash" alias gst="git stash"
alias gstp="git stash pop" alias gstp="git stash pop"
alias gc="git commit"
alias gc="git commit -S"
alias gcam="ga && git commit --amend --no-edit" alias gcam="ga && git commit --amend --no-edit"
alias gcamp="ga && git commit --amend --no-edit && gpsf" alias gcamp="ga && git commit --amend --no-edit && gpsf"
# todo: fix # todo: fix

2
configs/i3/config

@ -391,7 +391,7 @@ set $bar_trans 00
set $benq_ws_trans aa set $benq_ws_trans aa
bar { bar {
i3bar_command i3bar -t i3bar_command i3bar -t
font pango:$sb_font 20
font pango:$sb_font 21
colors { colors {
# 0 (transparent) -> 255 (opaque) in hex # 0 (transparent) -> 255 (opaque) in hex
background $black$bar_trans background $black$bar_trans

3
dotfiles/.gitconfig

@ -1,6 +1,7 @@
[user] [user]
email = kevin.mok@live.ca email = kevin.mok@live.ca
name = Kevin Mok name = Kevin Mok
signingkey = AEA75288DC135CF5
[color] [color]
ui = auto ui = auto
[core] [core]
@ -14,3 +15,5 @@
prompt = false prompt = false
[diff] [diff]
tool = vimdiff tool = vimdiff
[commit]
gpgsign = true

52
dotfiles/.mygpg-key-default

@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFwJkp0BEAC5LbkyE3lt81tDSDV+blt1X762AWYru3NTBCdjoQLQtHyADDfe
S7cc0QizCBUaqtrpkV7PQJwVmOKQZU8+CO/vXz/70UCxbNPm5ydGfEzcViY/F3Tu
fL3Bya0INLQOTmm/+/xdR0J/uiFv6iu6ua7GWilH7aawNvej4KXfXA7XMtAzUwvn
MuQ2QVkG/JK8dn6GcBI0XDawBlF+8C0yteaScSf8jsZMlF5lNG89nN2JhHnlWBr0
LmCFV+mLNXbE2sJOV0yY8RXHZE16S/sRyziSUg0Ln8jIgplnI7v2qklgdH1YCI79
xmVmTzJX+MmhT5MzLm5ZxqSl0IrS6HL5nrLBNN2dJH69hX2/F+ksFnm/7HcWa7PO
HEtpT36whn+wCzjJfyYcJplkfeWC6y/bwnt4iH99hp7gPMouKOTMEvEKunb8AMXj
N9RW3Z8fAgk931ncB4XWxWmO4MAFE5vb3J9hkLJ4FXlD1mCrMEoBcQqRAgou5p8Z
Dg0Dpy0zxtS72nuC8QkXoIVTZU8lBMX4zBv0tWTZuxuACKh+d3l+lQdTq0JyOPMU
3Zq5KEh2U0gLtQ2YOJvDwUirNjKTeJRj7jD4sR++LaERejmPQ+7qPzacRw+hGjzK
ILcmo+rV8pBXZBb+/OJljpryDo3nR5a+r0rwhKLTGHy7KRv/soPA0oQVfwARAQAB
tCdLZXZpbiBNb2sgKGRlZmF1bHQpIDxrZXZpbi5tb2tAbGl2ZS5jYT6JAlQEEwEI
AD4WIQTJrtyaxXomnlsNNnGup1KI3BNc9QUCXAmSnQIbAwUJAeEzgAULCQgHAgYV
CgkICwIEFgIDAQIeAQIXgAAKCRCup1KI3BNc9eIXD/9WC1ZGAOV1/VujgB9I8yAO
GPyTB1+pZJ6CmsW/hk858tA3fYnkkceIW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IC KEY BLOCK-----

8
dotfiles/.vimrc

@ -27,6 +27,7 @@ set linespace=5
set timeoutlen=500 set timeoutlen=500
set hlsearch set hlsearch
set noswapfile
" }}} set x=y " " }}} set x=y "
" commands for file types {{{ " " commands for file types {{{ "
@ -34,7 +35,7 @@ set hlsearch
autocmd VimResized * wincmd = autocmd VimResized * wincmd =
autocmd BufNewFile,BufRead .* set syntax=sh autocmd BufNewFile,BufRead .* set syntax=sh
autocmd Filetype css,htmldjango,html,tex,txt,markdown set tabstop=2 shiftwidth=2 expandtab autocmd Filetype css,htmldjango,html,tex,txt,markdown set tabstop=2 shiftwidth=2 expandtab
autocmd BufRead commit-msg.txt set filetype=gitcommit
autocmd BufRead commit-msg.txt set filetype=gitcommit tw=72
autocmd BufNewFile,BufRead *.md set filetype=markdown autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd Filetype markdown set textwidth=0 autocmd Filetype markdown set textwidth=0
@ -254,12 +255,12 @@ nnoremap <leader>yg ggyG
" }}} Mappings " " }}} Mappings "
" Local Mappings {{{ "
" (tex) Local Mappings {{{ "
let maplocalleader="-" let maplocalleader="-"
autocmd Filetype c inoremap <localleader>s struct pixel autocmd Filetype c inoremap <localleader>s struct pixel
" tex {{{ "
autocmd Filetype tex inoremap <localleader>bt \bowtie autocmd Filetype tex inoremap <localleader>bt \bowtie
autocmd Filetype tex inoremap <localleader>c \checkmark
autocmd Filetype tex inoremap <localleader>d \delta autocmd Filetype tex inoremap <localleader>d \delta
autocmd Filetype tex inoremap <localleader>D \Delta autocmd Filetype tex inoremap <localleader>D \Delta
autocmd Filetype tex inoremap <localleader>e \exists autocmd Filetype tex inoremap <localleader>e \exists
@ -291,7 +292,6 @@ autocmd Filetype tex inoremap <localleader>Z \mathbb{Z}
" par3 " par3
autocmd Filetype tex inoremap <localleader>wx $w(x)$ autocmd Filetype tex inoremap <localleader>wx $w(x)$
autocmd Filetype tex inoremap <localleader>tx $t(x)$ autocmd Filetype tex inoremap <localleader>tx $t(x)$
" }}} tex "
autocmd Filetype md inoremap <localleader>x 0f[lRX autocmd Filetype md inoremap <localleader>x 0f[lRX

18
dotfiles/.zshrc

@ -115,18 +115,22 @@ fi
# pywal # pywal
export PATH="${PATH}:${HOME}/.local/bin/:${HOME}/linux-config/scripts" export PATH="${PATH}:${HOME}/.local/bin/:${HOME}/linux-config/scripts"
(cat ~/.cache/wal/sequences &) (cat ~/.cache/wal/sequences &)
source ~/.cache/wal/colors.sh
# keyboard delay/rate
xset r rate 200 60 xset r rate 200 60
# laptop
if [ "$(hostname)" = "X1-Carbon" ];
# laptop specific {{{ #
# keyboard delay/rate
if [ "$(hostname)" = "x1-carbon" ];
then then
xrandr --dpi 125 xrandr --dpi 125
xinput disable "ELAN Touchscreen" xinput disable "ELAN Touchscreen"
# enable horizontal scrolling # enable horizontal scrolling
synclient HorizTwoFingerScroll=1 synclient HorizTwoFingerScroll=1
fi fi
source /home/kevin/.shortcuts
# }}} laptop specific #
# autoreload zsh aliases {{{ # # autoreload zsh aliases {{{ #
@ -152,10 +156,10 @@ add-zsh-hook precmd reload_aliases
# }}} autoreload zsh aliases # # }}} autoreload zsh aliases #
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
source /home/kevin/.shortcuts
# export pywal colors # export pywal colors
source ~/.cache/wal/colors.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# autoload -U add-zsh-hook
add-zsh-hook -Uz chpwd (){ ls -a; } add-zsh-hook -Uz chpwd (){ ls -a; }
export GPG_TTY=$(tty)

4
setup.sh

@ -25,8 +25,8 @@ link_to_lc () {
} }
link_to_lc "files" "$HOME" "$lc_dir/dotfiles" link_to_lc "files" "$HOME" "$lc_dir/dotfiles"
link_to_lc "dirs" "$HOME/.config" "$lc_dir/configs"
link_to_lc "dirs" "$HOME/.themes" "$lc_dir/gtk/themes"
# link_to_lc "dirs" "$HOME/.config" "$lc_dir/configs"
# link_to_lc "dirs" "$HOME/.themes" "$lc_dir/gtk/themes"
# setup nvim config # setup nvim config
# nvim_file="/home/kevin/lc-test/init.vim" # nvim_file="/home/kevin/lc-test/init.vim"

Loading…
Cancel
Save