{"id":20518149,"url":"https://github.com/ucl-arc/swc-shell-split-window","last_synced_at":"2025-04-14T00:55:21.222Z","repository":{"id":3164323,"uuid":"38936364","full_name":"UCL-ARC/swc-shell-split-window","owner":"UCL-ARC","description":"Script to split the shell using tmux","archived":false,"fork":false,"pushed_at":"2023-11-25T10:23:08.000Z","size":187,"stargazers_count":36,"open_issues_count":2,"forks_count":16,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-03-27T15:01:46.564Z","etag":null,"topics":["software-carpentry","split-window","terminal","tool","tooling"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UCL-ARC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2015-07-11T18:37:57.000Z","updated_at":"2024-10-31T12:26:39.000Z","dependencies_parsed_at":"2024-11-15T21:38:34.485Z","dependency_job_id":"86b22b1f-c30b-4e55-b37f-b5e289438077","html_url":"https://github.com/UCL-ARC/swc-shell-split-window","commit_stats":null,"previous_names":["ucl-arc/swc-shell-split-window"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-ARC%2Fswc-shell-split-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-ARC%2Fswc-shell-split-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-ARC%2Fswc-shell-split-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL-ARC%2Fswc-shell-split-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UCL-ARC","download_url":"https://codeload.github.com/UCL-ARC/swc-shell-split-window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804784,"owners_count":21164131,"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":["software-carpentry","split-window","terminal","tool","tooling"],"created_at":"2024-11-15T21:38:34.944Z","updated_at":"2025-04-14T00:55:21.190Z","avatar_url":"https://github.com/UCL-ARC.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Software Carpentry Shell Split Window\n\nThis is a script to split window for the shell lesson.\n\n## License\n\nUnder MIT.\n\n## Requirement\n\n-   [tmux](https://tmux.github.io/)\n\n## Use\n\n~~~\n$ ./swc-shell-split-window.sh\n~~~\n\nVarious environment variables affect the behaviour of the script, these are:\n\n * `SESSION`:       The name of the session (default: swc)\n * `LOG_FILE`:      The location where the log file will be stored (default: /tmp/swc-split-log-file)\n * `HISTORY_LINES`: How many lines of history to be shown (default: 5)\n * `BGCOLOR`:       Background colour of the session\n\nThese can be used with, e.g.:\n\n    LOG_FILE=/tmp/log HISTORY_LINES=10 ./swc-shell-split-window.sh\n\n## Notes\n\n### Mouse scrolling\n\nTo enable mouse scrolling of the output edit `$HOME/.tmux.conf` to include the\nline:\n\n~~~\nsetw -g mouse on\n~~~\n\n### Background colours\n\nYou may wish to set the background color of a session in case you have to role\nplay to different people. This comes in handy if, for instance, you are teaching\nabout Git Conflicts.\n\nTo do so, you would want to start to sessions in separate terminal windows with,\ne.g.:\n\n    SESSION=swc1 BGCOLOR=12 ./swc-shell-split-window.sh\n    SESSION=swc2 BGCOLOR=90 ./swc-shell-split-window.sh\n\nYou can print all the available colours using:\n\n    for i in {0..255}; do\n        printf \"\\x1b[38;5;${i}mcolour${i}\\x1b[0m\\n\"\n    done\n\n## Screenshot\n\n![Screenshot of swc-shell-split-window](screenshot.png \"Screenshot - only commands appear in top part of the shell, while instructor types in the bottom part and output is interleaved with commands\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl-arc%2Fswc-shell-split-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucl-arc%2Fswc-shell-split-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl-arc%2Fswc-shell-split-window/lists"}