Browse Source

Update (before using stow)

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
dd3193d760
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 1
      aliases/key_aliases
  2. 1
      dotfiles/.vimrc
  3. 15
      dotfiles/.zshrc
  4. 2
      scripts/sync-shortcuts
  5. 2
      txt/key_dirs.txt
  6. 2
      txt/key_files.txt

1
aliases/key_aliases

@ -4,6 +4,7 @@
cs "printf '\033c'" cs "printf '\033c'"
hst "history" hst "history"
nf "cs && neofetch | lolcat" nf "cs && neofetch | lolcat"
fi "fish"
# reload urxvt # reload urxvt
ru "xrdb ~/.Xresources" ru "xrdb ~/.Xresources"
# list file sizes in megabytes with depth 1 # list file sizes in megabytes with depth 1

1
dotfiles/.vimrc

@ -160,6 +160,7 @@ Plug 'PotatoesMaster/i3-vim-syntax'
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>' " let g:multi_cursor_select_all_word_key='<C-a>'
Plug 'dag/vim-fish'
call plug#end() call plug#end()

15
dotfiles/.zshrc

@ -102,8 +102,10 @@ source ~/linux-config/aliases/zsh_aliases
# ZSH_THEME="miloshadzic" # ZSH_THEME="miloshadzic"
# ZSH_THEME="agnoster" # ZSH_THEME="agnoster"
# antigen {{{ #
source $ZSH/custom/antigen.zsh source $ZSH/custom/antigen.zsh
antigen bundle last-working-dir
# antigen bundle last-working-dir
antigen bundle pass antigen bundle pass
antigen bundle hlissner/zsh-autopair antigen bundle hlissner/zsh-autopair
@ -114,17 +116,22 @@ antigen bundle desyncr/auto-ls
antigen theme molovo/filthy antigen theme molovo/filthy
antigen apply antigen apply
# }}} antigen #
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx exec startx
fi fi
# pywal
# pywal {{{ #
export PATH="${PATH}:${HOME}/.local/bin/:${HOME}/linux-config/scripts:/opt/pycharm-2018.3.1/bin:${HOME}/linux-config/scripts/colors" export PATH="${PATH}:${HOME}/.local/bin/:${HOME}/linux-config/scripts:/opt/pycharm-2018.3.1/bin:${HOME}/linux-config/scripts/colors"
(cat ~/.cache/wal/sequences &) (cat ~/.cache/wal/sequences &)
# export pywal colors # export pywal colors
source ~/.cache/wal/colors.sh source ~/.cache/wal/colors.sh
export COLOR7=$color7 export COLOR7=$color7
# }}} pywal #
xset r rate 200 60 xset r rate 200 60
# laptop specific {{{ # # laptop specific {{{ #
@ -168,8 +175,8 @@ source /home/kevin/.shortcuts
source /home/kevin/coding/spotify-lib-vis/src/api-keys.sh source /home/kevin/coding/spotify-lib-vis/src/api-keys.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# add-zsh-hook -Uz chpwd (){ ls -a; }
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
export PASSWORD_STORE_CLIP_TIME=120 export PASSWORD_STORE_CLIP_TIME=120
source /home/kevin/.key_aliases source /home/kevin/.key_aliases
exec fish

2
scripts/sync-shortcuts

@ -42,7 +42,7 @@ printf "# vim: filetype=sh\\nalias " > "$aliases"
# Format the key file in the correct syntax and sent it to all configs. # Format the key file in the correct syntax and sent it to all configs.
sed "s/\s*#.*$//;/^\s*$/d" "$key_dirs" | tee \ sed "s/\s*#.*$//;/^\s*$/d" "$key_dirs" | tee \
>(awk '{print $1"=\"cd "$2" && ls -a\" \\"}' >> "$aliases") \ >(awk '{print $1"=\"cd "$2" && ls -a\" \\"}' >> "$aliases") \
>(awk '{print "abbr", $1, "\"cd " $2 "; and ls -a\""}' >> "$fish_abbr") \
>(awk '{print "abbr", $1, "\"cd " $2 "\""}' >> "$fish_abbr") \
| awk '{print "map f"$1, "cd", $2; | awk '{print "map f"$1, "cd", $2;
print "map t"$1, "tab_new", $2; print "map t"$1, "tab_new", $2;
print "map m"$1, "shell mv -v", $2; print "map m"$1, "shell mv -v", $2;

2
txt/key_dirs.txt

@ -5,7 +5,7 @@ cf /home/kevin/.config
lc /home/kevin/linux-config/ lc /home/kevin/linux-config/
d /home/kevin/Downloads d /home/kevin/Downloads
D /home/kevin/Documents D /home/kevin/Documents
fi /home/kevin/.config/fish
fs /home/kevin/.config/fish
k /home/kevin/ k /home/kevin/
lc /home/kevin/linux-config/ lc /home/kevin/linux-config/
me /run/media/kevin me /run/media/kevin

2
txt/key_files.txt

@ -11,7 +11,7 @@ sr /home/kevin/linux-config/configs/ranger/shortcuts.conf
ss /home/kevin/.shortcuts ss /home/kevin/.shortcuts
u /home/kevin/.Xresources u /home/kevin/.Xresources
v /home/kevin/.vimrc v /home/kevin/.vimrc
y /home/kevin/.zshrc
# y /home/kevin/.zshrc
z /home/kevin/linux-config/aliases/zsh_aliases z /home/kevin/linux-config/aliases/zsh_aliases
# }}} sys * # }}} sys *

Loading…
Cancel
Save