mirror of
https://github.com/anthonyoteri/dotfiles.git
synced 2026-06-05 15:46:54 -04:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d23a1feb99 | |||
| dd087379d9 |
+41
-8
@@ -1,13 +1,14 @@
|
|||||||
# Set 24-bit color mode
|
# Set up the terminal overrides
|
||||||
set-option -sa terminal-overrides ",xterm*:Tc"
|
set-option -g default-terminal 'screen-256color'
|
||||||
|
set-option -sa terminal-overrides ",xterm-256color:RGB"
|
||||||
|
|
||||||
# Enable mouse support
|
# Enable mouse support
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# Set prefix to Ctrl+Space
|
# Set prefix to Ctrl+Space
|
||||||
unbind C-b
|
#unbind C-b
|
||||||
set -g prefix C-Space
|
#set -g prefix C-Space
|
||||||
bind C-Space send-prefix
|
#bind C-Space send-prefix
|
||||||
|
|
||||||
# Shift Alt vim keys to switch windows
|
# Shift Alt vim keys to switch windows
|
||||||
bind -n M-H previous-window
|
bind -n M-H previous-window
|
||||||
@@ -19,6 +20,14 @@ set -g pane-base-index 1
|
|||||||
set-window-option -g pane-base-index 1
|
set-window-option -g pane-base-index 1
|
||||||
set-option -g renumber-windows on
|
set-option -g renumber-windows on
|
||||||
|
|
||||||
|
# Miscellaneous settings
|
||||||
|
set -g detach-on-destroy off # don't exit from tmux when closing a session
|
||||||
|
set -g escape-time 0 # zero-out escape time delay
|
||||||
|
set -g history-limit 1000000 # increase history size
|
||||||
|
set -g set-clipboard on # use system clipboard
|
||||||
|
set -g status-position top # macOS / darwin style
|
||||||
|
set -g default-terminal "${TERM}"
|
||||||
|
|
||||||
# Set vi-mode
|
# Set vi-mode
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
@@ -34,9 +43,33 @@ bind % split-window -h -c "#{pane_current_path}"
|
|||||||
# Configure Tmux plugins
|
# Configure Tmux plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
||||||
set -g @plugin 'egel/tmux-gruvbox'
|
|
||||||
set -g @tmux-gruvbox 'dark256'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
set -g @plugin 'fcsonline/tmux-thumbs'
|
||||||
|
set -g @plugin 'sainnhe/tmux-fzf'
|
||||||
|
set -g @plugin 'wfxr/tmux-fzf-url'
|
||||||
|
set -g @plugin 'egel/tmux-gruvbox'
|
||||||
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||||
|
set -g @plugin 'omerxx/tmux-sessionx'
|
||||||
|
set -g @plugin 'omerxx/tmux-floax'
|
||||||
|
|
||||||
|
set -g @floax-width '80%'
|
||||||
|
set -g @floax-height '80%'
|
||||||
|
set -g @floax-bind 'p'
|
||||||
|
set -g @floax-change-path 'true'
|
||||||
|
|
||||||
|
set -g @sessionx-x-path '~/dotfiles'
|
||||||
|
set -g @sessionx-window-height '85%'
|
||||||
|
set -g @sessionx-window-width '75%'
|
||||||
|
set -g @sessionx-zoxide-mode 'on'
|
||||||
|
set -g @sessionx-custom-paths-subdirectories 'false'
|
||||||
|
set -g @sessionx-filter-current 'false'
|
||||||
|
|
||||||
|
set -g @continuum-restore 'on'
|
||||||
|
|
||||||
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
|
|
||||||
|
set -g @tmux-gruvbox 'dark'
|
||||||
|
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Start the gpg-agent if not already running
|
||||||
|
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
|
||||||
|
gpg-connect-agent /bye >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias gpg-unlock "gpg-connect-agent updatestartuptty /bye"
|
||||||
@@ -92,6 +92,10 @@ export PATH=${HOME}/.local/bin:${HOME}/.cargo/bin:${HOME}/go/bin:${PATH}
|
|||||||
export MONOREPO_ROOT=${HOME}/Projects/monorepo
|
export MONOREPO_ROOT=${HOME}/Projects/monorepo
|
||||||
export DOCKER_BUILDKIT=1
|
export DOCKER_BUILDKIT=1
|
||||||
|
|
||||||
|
# Export SSH_AUTH_SOCK to GPG eo enable using gpgagent as the ssh-agent
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
gpgconf --launch gpg-agent
|
||||||
|
|
||||||
# Custom aliases
|
# Custom aliases
|
||||||
alias cat='bat '
|
alias cat='bat '
|
||||||
alias vim=$(which nvim)
|
alias vim=$(which nvim)
|
||||||
|
|||||||
Reference in New Issue
Block a user