{"id":16763467,"url":"https://github.com/edr3x/tmux-sessionizer","last_synced_at":"2026-01-26T12:37:29.128Z","repository":{"id":136793352,"uuid":"540067638","full_name":"edr3x/tmux-sessionizer","owner":"edr3x","description":"instructions on using tmux-sessionizer to make project workflow blazingly fast","archived":false,"fork":false,"pushed_at":"2025-03-07T14:02:51.000Z","size":5,"stargazers_count":73,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T15:22:05.495Z","etag":null,"topics":["fzf","fzf-scripts","tmux","tmux-scripts"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edr3x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-22T16:18:48.000Z","updated_at":"2025-03-07T14:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2688d86-bc11-4faf-88ff-527940941b8b","html_url":"https://github.com/edr3x/tmux-sessionizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edr3x%2Ftmux-sessionizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edr3x%2Ftmux-sessionizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edr3x%2Ftmux-sessionizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edr3x%2Ftmux-sessionizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edr3x","download_url":"https://codeload.github.com/edr3x/tmux-sessionizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243856731,"owners_count":20359046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fzf","fzf-scripts","tmux","tmux-scripts"],"created_at":"2024-10-13T05:06:38.800Z","updated_at":"2026-01-26T12:37:29.058Z","avatar_url":"https://github.com/edr3x.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# tmux-sessionizer\n\ntmux-sessionizer is a tmux script that makes your workflow BLAZINGLY FAST written by [ThePrimeagen](https://github.com/ThePrimeagen/)\n\n## Installation\n\n### tmux-sessionizer script\n\n- Save the script on `~/.local/scripts/tmux-sessionizer` where `tmux-sessionizer` is the name of the script\n\n```bash\n#!/usr/bin/env bash\n\nif [[ $# -eq 1 ]]; then\n    selected=$1\nelse\n    selected=$(find ~/projects ~/tests -mindepth 1 -maxdepth 1 -type d | fzf)\nfi\n\nif [[ -z $selected ]]; then\n    exit 0\nfi\n\nselected_name=$(basename \"$selected\" | tr . _)\ntmux_running=$(pgrep tmux)\n\nif [[ -z $TMUX ]] \u0026\u0026 [[ -z $tmux_running ]]; then\n    tmux new-session -s $selected_name -c $selected\n    exit 0\nfi\n\nif ! tmux has-session -t=$selected_name 2\u003e /dev/null; then\n    tmux new-session -ds $selected_name -c $selected\nfi\n\nif [[ -z $TMUX ]]; then\n    tmux attach -t $selected_name\nelse\n    tmux switch-client -t $selected_name\nfi\n```\n\n- Here change the find paths on line no. 6 to your corresponding paths to projects folder on which you want to work on\n\n## Add the script folder to your path and add the `ctrl+f` macro as a key binding\n\n### For Bash put this in `.bashrc`\n```bash\nPATH=\"$PATH\":\"$HOME/.local/scripts/\"\nbind '\"\\C-f\":\"tmux-sessionizer\\n\"'\n```\n\n### For Z shell put this in `.zshrc`\n\n```bash\nbindkey -s ^f \"tmux-sessionizer\\n\"\n```\n\n\n### For Fish put this in `config.fish`\n\n```sh\nset PATH \"$PATH\":\"$HOME/.local/scripts/\"\nbind \\cf \"tmux-sessionizer\"\n```\n\n## Add the following script on your `.tmux.conf`\n\n```bash\nbind-key -r f run-shell \"tmux neww ~/.local/scripts/tmux-sessionizer\"\n```\n\n- This will open fuzzy finder then you can search for the project you want and start new tmux session on that project directory on pressing `\u003cprefix\u003ef`\n\n### For macro jump i.e. jump directly to your desired project without opening fzf\n\n```bash\nbind-key -r k run-shell \"~/.local/scripts/tmux-sessionizer ~/projects/work/tmux-theme\"\n```\n\n- This will create a new tmux session on `tmux-theme` project directory when you press `\u003cprefix\u003ek`\n\n## Finally run following command on your terminal to give permission for `tmux-sessionizer` script to run\n\n```bash\nchmod +x ~/.local/scripts/tmux-sessionizer\n```\n\n## Now restart your shell and enjoy the blazing fast workflow\n\n### Steps to use\n\n- Press `ctrl+f` to open the fzf finder\n- type the name of project you want to work on and press enter\n- Now you will be on the project directory on tmux session\n\n\u003e Note:\n\u003e\n\u003e you can see prime's [video](https://youtu.be/hJzqEAf2U4I) on this to understand in detail\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedr3x%2Ftmux-sessionizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedr3x%2Ftmux-sessionizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedr3x%2Ftmux-sessionizer/lists"}