-
Notifications
You must be signed in to change notification settings - Fork 4
Just in case you wanted to see/take any of these changes #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fabianvf
wants to merge
40
commits into
chrisseto:master
Choose a base branch
from
fabianvf:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
f849327
change name
fabianvf 84bde69
fix mouse mode for new tmux
fabianvf 1aef86e
add some crap
fabianvf c0f6130
Merge branch 'master' of https://github.com/chrisseto/dotfiles
fabianvf b070996
Add relnum/num toggle with <C-n>
fabianvf 2298b9f
Change color and style for VC readout
fabianvf e6f6c85
remove broken git plugin from zprezto
fabianvf 8ea9289
point at doctest version of pytest
fabianvf c617df3
add tmuxinator to setup
fabianvf 81c9cd3
change mapping for vim to <Leader><n>
fabianvf 4945c1a
remake prompt to display virtual environment information
fabianvf f663dc2
add better directory display
fabianvf 59ade0e
add space
fabianvf 871394c
never mind no space
fabianvf c669f85
make the current line have the correct number
fabianvf 7c70928
fix some edge cases
fabianvf a508e1c
Remove reattach to user namespace stuff (I'm not on OSX)
fabianvf 6dab77e
remove all brew references (I'm not on OSX)
fabianvf 0ec41cb
make tmux go to mouse mode <2.1
fabianvf f916c27
make yanks work on system clipboard
fabianvf f183a09
Make copy paste to system clipboard work on fedora
fabianvf a18a814
neat window swap plugin
fabianvf 88a7d33
puppet linting
fabianvf 9462c2a
Lots of useful things (inc disabling caps lock)
fabianvf df15e59
add support for vimx
fabianvf 54ffdec
add some useful plugins, fix some ruby stuff
fabianvf 7fcba04
add some useful aliases
fabianvf 31920b8
Add some more handy aliases
fabianvf abce038
Programmatically get BG colors, reset them for transparency toggle
fabianvf bf9bc71
update mouse mode commands
fabianvf e632743
add fasd and fasd aliases
fabianvf 9480075
fix vimx check
fabianvf 3b1ba5a
push latest
fabianvf 161a672
fix activate.sh check
fabianvf e1895a8
add tpm
fabianvf fcdfc68
autosave session
fabianvf ffd9424
make vim work better in tmux
fabianvf 68a3945
Add spotify commands + oc completions
fabianvf b1a4ac8
add some helpful functions
fabianvf fc9966d
Fix tmux in fedora 3x
fabianvf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| ruby | ||
| stow | ||
| zsh | ||
| tmux | ||
| vim | ||
| fasd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
@@ -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]⮀' | ||
|
|
@@ -92,20 +92,18 @@ bind + select-layout main-horizontal | |
| ############ | ||
|
|
||
| # Toggle mouse on | ||
| unbind m | ||
| bind m \ | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
| ################ | ||
|
|
@@ -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" | ||
|
|
@@ -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' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.