From 74e9773fb104c2ff5cd4ea5a50070bc7849f22cf Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 21 Feb 2026 14:59:14 -0500 Subject: [PATCH] fix(rg): ignore git --- config/tmux/tmux.conf | 8 +++++--- home/modules/shell.nix | 1 + hosts/xps15/configuration.nix | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 8b261d7..5ed79f5 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -54,11 +54,13 @@ unbind ?; bind ? if -F '#{pane_in_mode}' { send-keys -X cancel } { copy-mode ; c bind -T copy-mode-vi v send-keys -X begin-selection bind -T copy-mode-vi y send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' -bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection -bind -n TripleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-line \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection +bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' +bind -n TripleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-line \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' bind -T copy-mode-vi DoubleClick1Pane select-pane \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection bind -T copy-mode-vi TripleClick1Pane select-pane \; send-keys -X select-line \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection -bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection +bind -n MouseDown1Pane select-pane -t= \; send-keys -M \; set -p @_cpdrag 0 +bind -T copy-mode-vi MouseDown1Pane send -M \; set -p @_cpdrag 1 +bind -T copy-mode-vi MouseDragEnd1Pane if -F '#{==:#{@_cpdrag},1}' { send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' ; send-keys -X clear-selection } { send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' } unbind b; bind b set status\; refresh -S unbind m; bind m set -g mouse\; run-shell 'mux bar'\; refresh -S diff --git a/home/modules/shell.nix b/home/modules/shell.nix index d6b4c7f..503bdb9 100644 --- a/home/modules/shell.nix +++ b/home/modules/shell.nix @@ -165,6 +165,7 @@ in xdg.configFile."rg/config" = lib.mkIf ripgrep { text = '' --hidden + --glob=!.git/ --column --no-heading --smart-case diff --git a/hosts/xps15/configuration.nix b/hosts/xps15/configuration.nix index f978db5..97c3de6 100644 --- a/hosts/xps15/configuration.nix +++ b/hosts/xps15/configuration.nix @@ -98,6 +98,11 @@ in export INPUTRC="$HOME/.config/nix/config/bash/inputrc" export THEME="midnight" ''; + loginShellInit = '' + if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then + exec start-hyprland + fi + ''; interactiveShellInit = '' [ -f "$HOME/.config/nix/config/bash/bashrc" ] && . "$HOME/.config/nix/config/bash/bashrc" '';