tmux
This commit is contained in:
parent
91675dec8e
commit
46787016a2
@ -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
|
||||
@ -102,18 +109,28 @@ bind -n S-Pagedown send-keys S-Pagedown
|
||||
# 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'
|
||||
set-option -g @plugin 'b0o/tmux-autoreload'
|
||||
#set -g @plugin 'jimeh/tmux-themepack'
|
||||
#set-option -g @plugin 'b0o/tmux-autoreload'
|
||||
#set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
#set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
|
||||
set -g @themepack 'powerline/default/cyan'
|
||||
#set -g @themepack 'powerline/default/cyan'
|
||||
|
||||
set -g @resurrect-capture-pane-contents 'on'
|
||||
set -g @continuum-restore 'off'
|
||||
#set -g @resurrect-capture-pane-contents 'on'
|
||||
#set -g @continuum-restore 'off'
|
||||
|
||||
|
||||
# initialize tmux plugin manager (keep this line at the very bottom of tmux.conf)
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
# SPOTIFY
|
||||
set -g @plugin 'xamut/tmux-spotify
|
||||
#run-shell "~/.tmux/plugins/tmux-spotify/tmux-spotify.tmux"
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit 0698e8f4b17d6454c71bf5212895ec055c578da0
|
@ -1 +0,0 @@
|
||||
Subproject commit cff343cf9e81983d3da0c8562b01616f12e8d548
|
1
tmux/.tmux/plugins/tmux-spotify
Submodule
1
tmux/.tmux/plugins/tmux-spotify
Submodule
@ -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
22
zsh/.zsh_helpers/nixos.sh
Executable 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
|
@ -50,6 +50,7 @@ brew_packages=(
|
||||
"fzf"
|
||||
"ripgrep"
|
||||
"fd"
|
||||
"spotify_player"
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user