2016-04-21 15:57:16 +03:00
|
|
|
|
echo "Loading zgen..."
|
|
|
|
|
|
source ~/bin/zgen/zgen.zsh
|
|
|
|
|
|
source ~/bin/fixcolors
|
2016-10-23 13:47:14 +03:00
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
HIST_STAMPS="yyyy-mm-dd"
|
|
|
|
|
|
HISTFILE=~/.histfile
|
|
|
|
|
|
HISTSIZE=2000
|
|
|
|
|
|
SAVEHIST=2000
|
|
|
|
|
|
setopt appendhistory autocd extendedglob
|
2016-12-09 21:01:33 +02:00
|
|
|
|
|
|
|
|
|
|
if [ -x /usr/bin/xset ]; then
|
|
|
|
|
|
if [ -v DISPLAY]; then
|
|
|
|
|
|
xset -b
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ${TERM} == st* ]]; then
|
|
|
|
|
|
if [ ! -e /usr/share/terminfo/s/st-256color ]; then
|
|
|
|
|
|
export TERM=xterm-256color
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
unsetopt beep
|
|
|
|
|
|
bindkey -e
|
|
|
|
|
|
export LESS="-X -R -F"
|
|
|
|
|
|
alias http='python -m http.server'
|
|
|
|
|
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
2016-10-23 13:47:14 +03:00
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
export EDITOR=mg
|
|
|
|
|
|
|
|
|
|
|
|
autoload insert-composed-char
|
|
|
|
|
|
zle -N insert-composed-char
|
|
|
|
|
|
# bind it to some key (Ctrl+x in this example)
|
|
|
|
|
|
bindkey insert-composed-char
|
|
|
|
|
|
|
|
|
|
|
|
if ! zgen saved; then
|
|
|
|
|
|
echo "creating zgen save..."
|
|
|
|
|
|
|
|
|
|
|
|
# prezto options
|
|
|
|
|
|
zgen prezto editor key-bindings 'emacs'
|
|
|
|
|
|
# zgen prezto prompt theme 'off'
|
|
|
|
|
|
|
|
|
|
|
|
# prezto load
|
|
|
|
|
|
zgen prezto
|
|
|
|
|
|
zgen prezto terminal
|
|
|
|
|
|
zgen prezto ssh
|
|
|
|
|
|
zgen prezto python
|
|
|
|
|
|
zgen prezto git
|
|
|
|
|
|
zgen prezto history
|
|
|
|
|
|
zgen prezto tmux
|
|
|
|
|
|
zgen prezto syntax-highlighting
|
|
|
|
|
|
zgen prezto completion
|
|
|
|
|
|
|
|
|
|
|
|
# not prezto
|
|
|
|
|
|
zgen load Tarrasch/zsh-bd
|
|
|
|
|
|
zgen load Tarrasch/zsh-colors
|
|
|
|
|
|
zgen load supercrabtree/k
|
|
|
|
|
|
zgen save
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
. ~/bin/aliases
|
|
|
|
|
|
|
2016-12-09 21:01:33 +02:00
|
|
|
|
#prompt fire 125 234 084 054 020
|
|
|
|
|
|
# powerline
|
|
|
|
|
|
#source ~/.local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
|
|
|
|
|
|
source ~/bin/powerline-shell-init
|
2016-04-21 15:57:16 +03:00
|
|
|
|
|
|
|
|
|
|
unalias rm
|
|
|
|
|
|
unalias mv
|
|
|
|
|
|
unalias cp
|
|
|
|
|
|
|
|
|
|
|
|
# STOP SHARING HISTORY
|
|
|
|
|
|
#unsetopt share_history
|
|
|
|
|
|
setopt NO_SHARE_HISTORY
|
|
|
|
|
|
setopt HIST_EXPIRE_DUPS_FIRST
|
|
|
|
|
|
|
2016-12-09 21:06:18 +02:00
|
|
|
|
yellow All Done!
|