tmux
This commit is contained in:
@ -76,6 +76,8 @@ without `reattach-to-user-namespace`. It doesn't hurt to have it installed.
|
||||
- OS X 10.10: Yosemite – *not required*
|
||||
- OS X 10.11: El Capitan – *not required*
|
||||
- macOS 10.12: Sierra – *required*
|
||||
- macOS 10.14: Mojave - *required*
|
||||
- macOS 10.15: Catalina - *not required*
|
||||
|
||||
The easiest way to use `reattach-to-user-namespace` with `tmux` is use to
|
||||
use the [`tmux-sensible`](https://github.com/tmux-plugins/tmux-sensible)
|
||||
|
0
tmux/.tmux/plugins/tmux-yank/citest
Normal file → Executable file
0
tmux/.tmux/plugins/tmux-yank/citest
Normal file → Executable file
0
tmux/.tmux/plugins/tmux-yank/scripts/copy_line.sh
Normal file → Executable file
0
tmux/.tmux/plugins/tmux-yank/scripts/copy_line.sh
Normal file → Executable file
5
tmux/.tmux/plugins/tmux-yank/scripts/copy_pane_pwd.sh
Normal file → Executable file
5
tmux/.tmux/plugins/tmux-yank/scripts/copy_pane_pwd.sh
Normal file → Executable file
@ -16,10 +16,13 @@ display_notice() {
|
||||
|
||||
main() {
|
||||
local copy_command
|
||||
local payload
|
||||
# shellcheck disable=SC2119
|
||||
copy_command="$(clipboard_copy_command)"
|
||||
payload="$(pane_current_path | tr -d '\n')"
|
||||
# $copy_command below should not be quoted
|
||||
pane_current_path | tr -d '\n' | $copy_command
|
||||
echo "$payload" | $copy_command
|
||||
tmux set-buffer "$payload"
|
||||
display_notice
|
||||
}
|
||||
main
|
||||
|
@ -174,7 +174,7 @@ clipboard_copy_command() {
|
||||
}
|
||||
|
||||
# Cache the TMUX version for speed.
|
||||
tmux_version="$(tmux -V | cut -d ' ' -f 2)"
|
||||
tmux_version="$(tmux -V | cut -d ' ' -f 2 | sed 's/next-//')"
|
||||
|
||||
tmux_is_at_least() {
|
||||
if [[ $tmux_version == "$1" ]] || [[ $tmux_version == master ]]; then
|
||||
@ -200,6 +200,9 @@ tmux_is_at_least() {
|
||||
if ((10#${current_version[i]} < 10#${wanted_version[i]})); then
|
||||
return 1
|
||||
fi
|
||||
if ((10#${current_version[i]} > 10#${wanted_version[i]})); then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
0
tmux/.tmux/plugins/tmux-yank/yank.tmux
Normal file → Executable file
0
tmux/.tmux/plugins/tmux-yank/yank.tmux
Normal file → Executable file
Reference in New Issue
Block a user