tmux clipbiard

This commit is contained in:
2026-02-16 08:29:14 +01:00
parent d11695bcf8
commit 396c36f5a9
2 changed files with 6 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ set -g history-limit 100000
# mouse # mouse
set -g mouse on set -g mouse on
set -s set-clipboard on
set -g allow-passthrough on
# utf8 / colors # utf8 / colors
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"

4
.zshrc
View File

@@ -172,6 +172,10 @@ function pj {
dir=$(find -L ${(u)roots} -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort | awk '{printf "%3d %s\n", NR, $0}' | fzf --reverse --prompt="project> " --query="$1" --select-1 --exit-0 --with-nth=2.. | sed 's/^ *[0-9]* //') && cd "$dir" dir=$(find -L ${(u)roots} -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort | awk '{printf "%3d %s\n", NR, $0}' | fzf --reverse --prompt="project> " --query="$1" --select-1 --exit-0 --with-nth=2.. | sed 's/^ *[0-9]* //') && cd "$dir"
} }
function clip {
echo -ne "\033]52;c;$(base64 | tr -d '\n')\a"
}
function mkcd { function mkcd {
: "${1:?where?}" : "${1:?where?}"
[[ -e $1 ]] && { echo "file exists"; return 1 } [[ -e $1 ]] && { echo "file exists"; return 1 }