Rewrote setup script to use function to link

Backup GTK theme (Sweet Dark).
This commit is contained in:
2018-12-05 19:36:52 -05:00
parent 80ea8653c3
commit e116f69904
429 changed files with 96107 additions and 66 deletions

View File

@@ -34,11 +34,12 @@ set hlsearch
autocmd VimResized * wincmd =
autocmd BufNewFile,BufRead .* set syntax=sh
autocmd Filetype css,htmldjango,html,tex,txt,markdown set tabstop=2 shiftwidth=2 expandtab
autocmd BufRead commit-msg.txt set filetype=gitcommit
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd Filetype markdown set textwidth=0
autocmd BufWritePost key_*.txt !sync-shortcuts
autocmd VimLeave *.tex !texclear %
autocmd VimLeave *.tex !tex-clean %
" " auto-reload vimrc {{{ "

View File

@@ -4,6 +4,11 @@ ZSH_THEME="bira"
# default {{{ #
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory autocd extendedglob nomatch notify
# If you come from bash you might have to change your $PATH.
# Path to your oh-my-zsh installation.
@@ -123,4 +128,32 @@ then
fi
source /home/kevin/.shortcuts
# autoreload zsh aliases {{{ #
# File containing aliases;
ALIAS_FILE="$HOME/linux-config/aliases/zsh_aliases"
reload_aliases () {
# do nothing if there is no $ALIAS_FILE
[[ -e ALIAS_FILE ]] || return 1
# check if $ALIAS_FILE has been modified since last reload
# the modifier `(:A)` resolves any symbolic links
if [[ $LAST_ALIAS_RELOAD < $(stat -c %Y ${ALIAS_FILE}(:A)) ]]; then
# load aliases
source $ALIAS_FILE
# update date of last reload
LAST_ALIAS_RELOAD=$(date +%s)
fi
}
# make reload_aliases to be run before each prompt
autoload -Uz add-zsh-hook
add-zsh-hook precmd reload_aliases
# }}} autoreload zsh aliases #
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# autoload -U add-zsh-hook
add-zsh-hook -Uz chpwd (){ ls -a; }