Skip to content

Instantly share code, notes, and snippets.

@golonzovsky
Last active February 2, 2018 09:05
Show Gist options
  • Save golonzovsky/8b97cdbc34f465a33ef6fb6312ad030b to your computer and use it in GitHub Desktop.
Save golonzovsky/8b97cdbc34f465a33ef6fb6312ad030b to your computer and use it in GitHub Desktop.
tmux/zsh/vim conf
bind -n M-x setw synchronize-panes
#bind-key -T copy-mode C-Up send-keys -X scroll-up
#bind-key -T copy-mode C-Down send-keys -X scroll-down
# use current dir for new panex/windows
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# easier and faster switching between next/prev window
bind C-p previous-window
bind C-n next-window
set-option -g history-limit 50000
set-option -g mouse on
set-option -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
#List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @sidebar-tree-command 'tree -C'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
syntax on
"stausline config
set laststatus=2
set noshowmode
filetype plugin indent on " show existing tab with 4 spaces width
set tabstop=4 " when indenting with '>', use 4 spaces width
set shiftwidth=4 " On pressing tab, insert 4 spaces
set expandtab
set paste
set t_Co=256
set hlsearch
"set number
"set relativenumber
"fix delay of escape key
set timeoutlen=1000 ttimeoutlen=0
call plug#begin('~/.vim/plugged')
Plug 'joshdick/onedark.vim'
Plug 'jeffkreeftmeijer/vim-numbertoggle'
Plug 'robbles/logstash.vim'
Plug 'airblade/vim-gitgutter'
Plug 'mustache/vim-mustache-handlebars'
Plug 'itchyny/lightline.vim' "do you even work
call plug#end()
let g:airline_theme='one'
colorscheme onedark
map <C-t><up> :tabr<cr>
map <C-t><down> :tabl<cr>
map <C-t><left> :tabp<cr>
map <C-t><right> :tabn<cr>
export GOPATH=/usr/lib/go-1.9
export PATH=$GOPATH/bin:$PATH
export ZSH=/home/ax/.oh-my-zsh
ZSH_THEME="robbyrussell"
plugins=(git kubectl colorize z thefuck)
source $ZSH/oh-my-zsh.sh
# 10ms for key sequences
KEYTIMEOUT=1
autoload -U colors; colors
source /home/ax/.zsh/zsh-kubectl-prompt/kubectl.zsh
RPROMPT='%{$fg[blue]%}($ZSH_KUBECTL_PROMPT)%{$reset_color%}'
source <(stern --completion zsh)
source <(helm completion zsh)
#source <(minikube completion bash)
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
#aliases
alias k="kubectl"
alias kdi="kubectl get deployment -o jsonpath='{.spec.template.spec.containers[*].image}' "
alias vy="vim -c 'set filetype=yaml' -"
alias fdd="docker run --rm -it --net=host -v /home/ax/_project/infra/kafka/gc-kafka-keys:/etc/secret landoop/fast-data-dev bash"
alias logesm="curl es-backend-stg.preprod-local.ch/_cat/master -s | cut -d' ' -f4 | xargs kubectl logs -n backend-stg -f"
alias d="docker"
# Keypad
# 0 . Enter
bindkey -s "^[Op" "0"
bindkey -s "^[Ol" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
# 7 8 9
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
# + - * /
bindkey -s "^[Ok" "+"
bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/"
#bindkey "^[OC" forward-word
#bindkey "^[OC" dirhistory_zle_dirhistory_future
#bindkey "^[OD" dirhistory_zle_dirhistory_back
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
eval $(thefuck --alias)
@golonzovsky
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment