Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "vim/.vim/autoload"]
path = vim/.vim/autoload
url = https://github.com/junegunn/vim-plug
[submodule "tmux/.tmux/plugins/tpm"]
path = tmux/.tmux/plugins/tpm
url = https://github.com/tmux-plugins/tpm
6 changes: 3 additions & 3 deletions git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
[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
helper = cache
[alias]
st = status
co = checkout
Expand Down
2 changes: 2 additions & 0 deletions packages.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ruby
stow
zsh
tmux
vim
fasd
7 changes: 7 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
echo "Initializing submodules"
git submodule init
git submodule update
echo "Linking zsh configuration"
stow zsh
echo "Linking vim configuration"
stow vim
echo "Linking git configuration"
stow git
echo "Linking tmux configuration"
stow tmux
echo "Installing tmuxinator"
gem install --user-install tmuxinator
60 changes: 33 additions & 27 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ set -g default-terminal "screen-256color"
# Use vim keybindings
setw -g mode-keys vi
set -g status-keys vi
setw -g utf8 on
# setw -g utf8 on
# use mouse in copy mode
setw -g mode-mouse on
setw -g mouse on

# status line
set -g status-utf8 on
# set -g status-utf8 on
set -g status-justify left
set -g status-bg colour2
set -g status-fg colour0
Expand All @@ -29,8 +29,8 @@ set -g status-interval 2
set -g status-left-length 32
set -g status-right-length 150

set -g pane-border-fg colour255
set -g pane-active-border-fg colour2
# set -g pane-border-fg colour255
# set -g pane-active-border-fg colour2

set -g status-right "#(date +\"%c\")"
set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(hostname -s) #[fg=colour238,bg=colour2,nobold]⮀'
Expand Down Expand Up @@ -92,20 +92,18 @@ 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 \;\
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'
set -g mouse on
# set -g set-clipboard off
# set -g mouse-utf8 on
# set -g select-pane 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'

# Navigate panes
################
Expand All @@ -118,7 +116,7 @@ bind-key v split-window -h -c "#{pane_current_path}"
bind-key s split-window -v -c "#{pane_current_path}"

# smart pane switching with awareness of vim splits
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"'
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
Expand Down Expand Up @@ -158,16 +156,24 @@ bind C-q confirm kill-server

bind tab choose-window

# Make copy-n-paste work on OSX
###############################

# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"

# Make vim yanking work with OSX system clipboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
bind-key -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'

# Remove lag from esc + key -> alt code
# IE make neovim usable
set -sg escape-time 0

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'

# Resurrect/Continuum options
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-boot 'on'
set -g @continuum-restore 'on'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
1 change: 1 addition & 0 deletions tmux/.tmux/plugins/tpm
Submodule tpm added at 59f788
30 changes: 30 additions & 0 deletions tmux/tmuxinator.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#compdef tmuxinator mux

_tmuxinator() {
local commands projects
commands=(${(f)"$(tmuxinator commands zsh)"})
projects=(${(f)"$(tmuxinator completions start)"})

if (( CURRENT == 2 )); then
_describe -t commands "tmuxinator subcommands" commands
_describe -t projects "tmuxinator projects" projects
elif (( CURRENT == 3)); then
case $words[2] in
copy|debug|delete|open|start)
_arguments '*:projects:($projects)'
;;
esac
fi

return
}

_tmuxinator

# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et
Loading