diff --git a/.tmux.conf b/.tmux.conf index c185da1..26542d4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -5,6 +5,8 @@ set -g history-limit 100000 # mouse set -g mouse on +set -s set-clipboard on +set -g allow-passthrough on # utf8 / colors set -g default-terminal "screen-256color" diff --git a/.zshrc b/.zshrc index 72ece92..daf6641 100644 --- a/.zshrc +++ b/.zshrc @@ -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" } +function clip { + echo -ne "\033]52;c;$(base64 | tr -d '\n')\a" +} + function mkcd { : "${1:?where?}" [[ -e $1 ]] && { echo "file exists"; return 1 }