mirror of
https://github.com/tmux-plugins/tmux-yank.git
synced 2026-09-10 07:36:17 -04:00
23 lines
471 B
Bash
Executable file
23 lines
471 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
HELPERS_DIR="$CURRENT_DIR"
|
|
|
|
source "$HELPERS_DIR/helpers.sh"
|
|
|
|
pane_current_path() {
|
|
tmux display -p -F "#{pane_current_path}"
|
|
}
|
|
|
|
display_notice() {
|
|
display_message 'PWD copied to clipboard!'
|
|
}
|
|
|
|
main() {
|
|
local copy_command="$(clipboard_copy_command)"
|
|
# $copy_command below should not be quoted
|
|
pane_current_path | tr -d '\n' | $copy_command
|
|
display_notice
|
|
}
|
|
main
|