mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-23 06:58:04 +01:00
Compare commits
No commits in common. "02977f9385245c6c0b6cb33e73d0366b89c921f5" and "66fe51d05f3146409c090aaa9ba14694f8dc0e90" have entirely different histories.
02977f9385
...
66fe51d05f
3 changed files with 8 additions and 95 deletions
|
@ -49,7 +49,7 @@ set -gx MISE_PYTHON_VENV_AUTO_CREATE true
|
||||||
|
|
||||||
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
|
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
|
||||||
|
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR vim
|
||||||
set -gx DJANGOPROJECT_DATA_DIR $HOME/.djangoproject
|
set -gx DJANGOPROJECT_DATA_DIR $HOME/.djangoproject
|
||||||
|
|
||||||
mise activate fish | source
|
mise activate fish | source
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
function chezmoiapply
|
function chezmoiapply
|
||||||
set -x NODE_OPTIONS "--no-deprecation"
|
|
||||||
|
|
||||||
if not bw login --check
|
if not bw login --check
|
||||||
set -x BW_SESSION (bw login --raw)
|
set -x BW_SESSION (bw login --raw)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,85 +0,0 @@
|
||||||
# change prefix wihout unbinding the default C-b
|
|
||||||
#set-option -g prefix C-a
|
|
||||||
#bind-key C-a send-prefix
|
|
||||||
|
|
||||||
# Split panes using | and -
|
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
|
||||||
unbind '"'
|
|
||||||
unbind %
|
|
||||||
|
|
||||||
bind c new-window -c "#{pane_current_path}"
|
|
||||||
|
|
||||||
# fast reload
|
|
||||||
bind r source-file ~/.tmux.conf
|
|
||||||
|
|
||||||
# switch panes using alt+arrow
|
|
||||||
bind -n M-Left select-pane -L
|
|
||||||
bind -n M-Right select-pane -R
|
|
||||||
bind -n M-Up select-pane -U
|
|
||||||
bind -n M-Down select-pane -D
|
|
||||||
|
|
||||||
set -g mouse on
|
|
||||||
|
|
||||||
# don't rename windows automatically
|
|
||||||
set-option -g allow-rename off
|
|
||||||
|
|
||||||
# vim mode for copying
|
|
||||||
setw -g mode-keys vi
|
|
||||||
# prefix + v to enter copy mode
|
|
||||||
bind v copy-mode
|
|
||||||
# v to start a visual selection
|
|
||||||
bind -T copy-mode-vi v send -X begin-selection
|
|
||||||
{{- if eq .chezmoi.os "darwin" }}
|
|
||||||
# y to yank
|
|
||||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
|
|
||||||
# mouse support
|
|
||||||
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
|
|
||||||
{{- else }}
|
|
||||||
# y to yank
|
|
||||||
bind -T copy-mode-vi y send -X copy-pipe-and-cancel
|
|
||||||
# mouse support
|
|
||||||
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel
|
|
||||||
{{- end }}
|
|
||||||
# prefix + P to paste
|
|
||||||
bind P paste-buffer
|
|
||||||
|
|
||||||
# color support
|
|
||||||
set -g default-terminal "xterm-256color"
|
|
||||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
|
||||||
|
|
||||||
bind u capture-pane \;\
|
|
||||||
save-buffer /tmp/tmux-buffer \;\
|
|
||||||
split-window -l 10 "urlview /tmp/tmux-buffer"
|
|
||||||
|
|
||||||
# DESIGN
|
|
||||||
|
|
||||||
# clock mode
|
|
||||||
setw -g clock-mode-colour colour0
|
|
||||||
# copy mode
|
|
||||||
setw -g mode-style 'fg=colour0 bg=colour1 bold'
|
|
||||||
|
|
||||||
# pane borders
|
|
||||||
set -g pane-border-style 'fg=colour1'
|
|
||||||
set -g pane-active-border-style 'fg=colour3'
|
|
||||||
|
|
||||||
# statusbar
|
|
||||||
set -g status-position bottom
|
|
||||||
set -g status-justify left
|
|
||||||
set -g status-style 'fg=#3670a5'
|
|
||||||
set -g status-left ''
|
|
||||||
set -g status-right '%Y-%m-%d %H:%M '
|
|
||||||
set -g status-right-length 50
|
|
||||||
set -g status-left-length 10
|
|
||||||
|
|
||||||
setw -g window-status-current-style 'fg=#071421 bg=#3670a5 bold'
|
|
||||||
setw -g window-status-current-format ' #I #W #F '
|
|
||||||
|
|
||||||
setw -g window-status-style 'fg=#3670a5 dim'
|
|
||||||
setw -g window-status-format ' #I #[fg=colour7]#W #[fg=#3670a5]#F '
|
|
||||||
|
|
||||||
setw -g window-status-bell-style 'fg=colour2 bg=#ad6f1d bold'
|
|
||||||
|
|
||||||
# messages
|
|
||||||
set -g message-style 'fg=colour2 bg=colour0 bold'
|
|
||||||
|
|
Loading…
Reference in a new issue