This commit is contained in:
= 2024-08-02 10:43:39 -06:00
commit 0d3d0e2dca
8 changed files with 49 additions and 6 deletions

View File

@ -90,9 +90,16 @@ set -g mouse on
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
#bind-key -T copy-mode-vi 'v' send -X begin-selection
#bind-key -T copy-mode-vi 'y' send -X copy-selection
if-shell "uname | grep -q Darwin" {
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
} {
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
}
unbind -T copy-mode-vi MouseDragEnd1Pane
# Page up/Down
@ -105,6 +112,12 @@ set -g status-right '#[fg=white]#(hostname)@#(host `hostname` | cut -d " " -f 4)
# tpm plugin manager
#set -g @plugin 'tmux-plugins/tpm'
# PLUGIN Management
if-shell "uname | grep -q Darwin" {
set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin"
}
# list of tmux plugins
#set -g @plugin 'christoomey/vim-tmux-navigator'
#set -g @plugin 'jimeh/tmux-themepack'
@ -119,4 +132,14 @@ set -g status-right '#[fg=white]#(hostname)@#(host `hostname` | cut -d " " -f 4)
# initialize tmux plugin manager (keep this line at the very bottom of tmux.conf)
<<<<<<< HEAD
#run '~/.tmux/plugins/tpm/tpm'
||||||| 91675dec
run '~/.tmux/plugins/tpm/tpm'
=======
run '~/.tmux/plugins/tpm/tpm'
# SPOTIFY
set -g @plugin 'xamut/tmux-spotify
#run-shell "~/.tmux/plugins/tmux-spotify/tmux-spotify.tmux"
>>>>>>> refs/remotes/origin/main

@ -1 +0,0 @@
Subproject commit 0698e8f4b17d6454c71bf5212895ec055c578da0

@ -1 +0,0 @@
Subproject commit cff343cf9e81983d3da0c8562b01616f12e8d548

@ -0,0 +1 @@
Subproject commit 071a9774861a61fc86b687b06cb208e0f2d3ac2b

@ -1 +0,0 @@
Subproject commit 7c59902f64dcd7ea356e891274b21144d1ea5948

@ -1 +0,0 @@
Subproject commit 5b3c701686fb4e6629c100ed32e827edf8dad01e

22
zsh/.zsh_helpers/nixos.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
prepend_host() {
local path="$1"
if [[ "${path:0:1}" == "/" ]]; then
echo "/host$path"
else
echo "$path"
fi
}
# Process each argument and prepend /host to paths starting with /
for arg in "$@"; do
if [[ "$arg" =~ ^/ ]]; then
ARGUMENTS+=" $(prepend_host "$arg")"
else
ARGUMENTS+=" $arg"
fi
done
# Run Docker container with modified arguments
docker run --rm -it -v /:/host "nixos/nix" $ARGUMENTS

View File

@ -50,6 +50,7 @@ brew_packages=(
"fzf"
"ripgrep"
"fd"
"spotify_player"
)