Skip to content

Instantly share code, notes, and snippets.

View shivams's full-sized avatar

shivams

  • Texas A&M University
  • College Station, Texas
View GitHub Profile
@shivams
shivams / fcopy.zsh
Created April 15, 2026 08:21
Copy-Pasting Across Tmux/Byobu Windows or Different Terminal Windows
# Quite often I have this need that I have multiple terminal or tmux windows open, each in a different directory,
# and I have to copy files from one folder to another. Here is a workflow which smoothens the process.
# Workflow: Mark files using `fmark`, then copy them to another tmux window using `fpaste`. Done. And dusted.
# Requirements: `fzf`
# 1. Mark files using fzf
fmark() {
# Use find (or fd) to list files, fzf -m allows multi-select with Tab
# We convert them to absolute paths so they can be pasted anywhere