Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f849327
change name
fabianvf Dec 18, 2015
84bde69
fix mouse mode for new tmux
fabianvf Dec 18, 2015
1aef86e
add some crap
fabianvf Dec 18, 2015
c0f6130
Merge branch 'master' of https://github.com/chrisseto/dotfiles
fabianvf Dec 18, 2015
b070996
Add relnum/num toggle with <C-n>
fabianvf Dec 21, 2015
2298b9f
Change color and style for VC readout
fabianvf Dec 21, 2015
e6f6c85
remove broken git plugin from zprezto
fabianvf Dec 21, 2015
8ea9289
point at doctest version of pytest
fabianvf Dec 21, 2015
c617df3
add tmuxinator to setup
fabianvf Dec 21, 2015
81c9cd3
change mapping for vim to <Leader><n>
fabianvf Dec 21, 2015
4945c1a
remake prompt to display virtual environment information
fabianvf Dec 21, 2015
f663dc2
add better directory display
fabianvf Dec 21, 2015
59ade0e
add space
fabianvf Dec 21, 2015
871394c
never mind no space
fabianvf Dec 21, 2015
c669f85
make the current line have the correct number
fabianvf Dec 21, 2015
7c70928
fix some edge cases
fabianvf Dec 21, 2015
a508e1c
Remove reattach to user namespace stuff (I'm not on OSX)
fabianvf Jan 20, 2016
6dab77e
remove all brew references (I'm not on OSX)
fabianvf Jan 20, 2016
0ec41cb
make tmux go to mouse mode <2.1
fabianvf Jan 22, 2016
f916c27
make yanks work on system clipboard
fabianvf Jan 22, 2016
f183a09
Make copy paste to system clipboard work on fedora
fabianvf Jan 28, 2016
a18a814
neat window swap plugin
fabianvf Jan 28, 2016
88a7d33
puppet linting
fabianvf Feb 5, 2016
9462c2a
Lots of useful things (inc disabling caps lock)
fabianvf Feb 5, 2016
df15e59
add support for vimx
fabianvf Apr 8, 2016
54ffdec
add some useful plugins, fix some ruby stuff
fabianvf Apr 8, 2016
7fcba04
add some useful aliases
fabianvf Apr 8, 2016
31920b8
Add some more handy aliases
fabianvf May 25, 2016
abce038
Programmatically get BG colors, reset them for transparency toggle
fabianvf May 25, 2016
bf9bc71
update mouse mode commands
fabianvf Nov 7, 2016
e632743
add fasd and fasd aliases
fabianvf Jan 19, 2017
9480075
fix vimx check
fabianvf Jan 19, 2017
3b1ba5a
push latest
fabianvf Nov 2, 2017
161a672
fix activate.sh check
fabianvf Nov 2, 2017
e1895a8
add tpm
fabianvf Jul 2, 2018
fcdfc68
autosave session
fabianvf Jun 12, 2019
ffd9424
make vim work better in tmux
fabianvf Jun 12, 2019
68a3945
Add spotify commands + oc completions
fabianvf Jun 12, 2019
b1a4ac8
add some helpful functions
fabianvf Jul 31, 2020
fc9966d
Fix tmux in fedora 3x
fabianvf Sep 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[hub]
protocol = https
[user]
name = Chris Seto
email = chriskseto@gmail.com
name = Fabian von Feilitzsch

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not this one though, this one is mine.

email = fabian@fabianism.us
[credential]
helper = osxkeychain
[alias]
Expand Down
18 changes: 6 additions & 12 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,15 @@ bind + select-layout main-horizontal
############

# Toggle mouse on
unbind m
bind m \

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes for 2.0+ tmux mouse mode.

set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
set-option -g -q mouse on \;\
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" \;\
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" \;\
bind-key -t vi-copy WheelUpPane halfpage-up \;\
bind-key -t vi-copy WheelDownPane halfpage-down \;\
display 'Mouse: ON'

# Toggle mouse off
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'

# Navigate panes
################

Expand Down
75 changes: 67 additions & 8 deletions vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ autocmd bufwritepost .vimrc source $MYVIMRC
call plug#begin()

" ESSENTIALS
Plug 'fabianvf/pytest.vim'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fork of pytest.vim (supports doctest running)

nmap <silent><Leader>tF :Pytest file verbose<CR>
nmap <silent><Leader>tc :Pytest class verbose<CR>
nmap <silent><Leader>tm :Pytest method verbose<CR>
nmap <silent><Leader>tf :Pytest function verbose<CR>
nmap <silent><Leader>tdF :Pytest file verbose doctest<CR>
nmap <silent><Leader>tdc :Pytest class verbose doctest<CR>
nmap <silent><Leader>tdm :Pytest method verbose doctest<CR>
nmap <silent><Leader>tdf :Pytest function verbose doctest<CR>

Plug 'bling/vim-airline'
let g:airline#extensions#hunks#enabled = 0
Plug 'christoomey/vim-tmux-navigator'

Plug 'tpope/vim-sensible'
Plug 'rstacruz/vim-opinion'
Expand Down Expand Up @@ -70,16 +83,16 @@ Plug 'alfredodeza/khuno.vim'

" NICE TO HAVE

Plug 'bling/vim-airline'
let g:airline_theme='tomorrow'
" Plug 'bling/vim-airline'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't sure what these were for, disabled out of laziness.

" let g:airline_theme='tomorrow'
" Show buffers in tabline
let g:airline#extensions#tabline#enabled = 1
" let g:airline#extensions#tabline#enabled = 1
" Disable stuff I don't need to see
let g:airline#extensions#hunks#enabled = 0
let g:airline#extensions#bufferline#enabled = 1
let g:airline#extensions#tagbar#enabled = 0
let g:airline#extensions#virtualenv#enabled = 0
let g:airline#extensions#csv#enabled = 0
" let g:airline#extensions#hunks#enabled = 0
" let g:airline#extensions#bufferline#enabled = 1
" let g:airline#extensions#tagbar#enabled = 0
" let g:airline#extensions#virtualenv#enabled = 0
" let g:airline#extensions#csv#enabled = 0
Plug 'christoomey/vim-tmux-navigator'

Plug 'SirVer/ultisnips'
Expand Down Expand Up @@ -177,6 +190,33 @@ if executable('npm')
" Rename with <C-c>rr (also like in python-mode)
autocmd Filetype javascript noremap <buffer> <C-c>r :TernRename<CR>
endif
Plug 'sophacles/vim-bundle-mako'
Plug 'plasticboy/vim-markdown'
let g:vim_markdown_folding_disabled=1

" Idris stuff
Plug 'idris-hackers/idris-vim'

Plug 'ZoomWin'
Plug 'terryma/vim-multiple-cursors'
" For previewing markdown, rst ,etc
Plug 'greyblake/vim-preview'
Plug 'matchit.zip'
Plug 'duff/vim-scratch'
" Open scratch buffer with space-tab
command! ScratchToggle call ScratchToggle()

function! ScratchToggle()
if exists("w:is_scratch_window")
unlet w:is_scratch_window
exec "q"
else
exec "normal! :Sscratch\<cr>\<C-W>L"
let w:is_scratch_window = 1
endif
endfunction

nnoremap <silent> <leader><tab> :ScratchToggle<cr>

call plug#end()
filetype plugin indent on
Expand All @@ -198,13 +238,20 @@ set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if sp
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'


" No bells
set noerrorbells visualbell t_vb=
""" VISUAL SETTINGS """

set t_Co=256 " Must be 256 for many themes to display correctly
" Favorites: hybrid iceberg Tomorrow hybrid-light
silent! colorscheme hybrid
" May want to have different schemes for termvim vs gvim
" if has('gui_running')
" silent! colorscheme emacs
" else
" silent! colorscheme underwater
" endif

" Show trailing whitespace
set list listchars=tab:▸\ ,trail:▫
Expand Down Expand Up @@ -352,3 +399,15 @@ if has('gui_running')
set go-=L
endif
endif

function! NumberToggle()

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toggle num/relnum

if(&relativenumber == 1)
set norelativenumber
set number
else
set relativenumber
set number
endif
endfunc

nnoremap <C-n> :call NumberToggle()<cr>
1 change: 0 additions & 1 deletion zsh/.zpreztorc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ zstyle ':prezto:load' pmodule \
'completion' \
'prompt' \
'osx' \
'git' \
'python'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disabled out of laziness


#
Expand Down
65 changes: 64 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
#!/usr/bin/env zsh
# shortcut to this dotfiles path is $ZSH
export ZSH=$HOME/.dotfiles
export ANSIBLE_NOCOWS=1
export PATH=$PATH:~/scripts:~/.cabal/bin
export EDITOR='vim'
export OSF=~/code/cos/osf.io
export SCRAPI=~/code/cos/scrapi
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python
alias ansalon='telnet ansalonmud.net 8679'

source ~/dotfiles/tmux/tmuxinator.zsh

alias g='git'
alias gssh='SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh && ssh'
alias c='clear'
alias query_share='curl -XPOST localhost:9200/share/_search\?pretty -d @query.json'
alias mkpasswd='python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())"'
# use .localrc for SUPER SECRET CRAP that you don't
# want in your public, versioned repo.
if [[ -a ~/.localrc ]]
then
source ~/.localrc
fi

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
Expand All @@ -10,6 +35,44 @@ autoload -U compinit
compinit

# Make autoenv always work
cd .
# fortune -o -s -n 300 | cowsay -f dragon-and-cow | lolcat

[[ -s $(brew --prefix)/etc/autojump.sh ]] && . $(brew --prefix)/etc/autojump.sh


export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh
source /usr/local/opt/autoenv/activate.sh

pyclean () {
ZSH_PYCLEAN_PLACES=${*:-'.'}
noglob find ${ZSH_PYCLEAN_PLACES} -type f -name "*.py[co]" -delete
noglob find ${ZSH_PYCLEAN_PLACES} -type d -name "__pycache__" -delete
}

# added by travis gem
[ -f /Users/fabian/.travis/travis.sh ] && source /Users/fabian/.travis/travis.sh

# Show git branch
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats \
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats \
'%F{4}%s%F{3}%F{2}:%F{4}%F{2}%b%F{5}%f '
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'

zstyle ':vcs_info:*' enable git cvs svn

# or use pre_cmd, see man zshcontrib
vcs_info_wrapper() {
vcs_info
if [ -n "$vcs_info_msg_0_" ]; then
echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del"
fi
}
RPROMPT=$'$(vcs_info_wrapper)'
# cd .
#
function colours() {
Expand Down Expand Up @@ -44,7 +107,7 @@ DISABLE_CORRECTION="true"
unsetopt correct
unsetopt correct_all

. ~/.bin/z.sh
# . ~/.bin/z.sh

alias py="python"
alias py3="python3"
Expand Down