{"id":22686030,"url":"https://github.com/terjesannum/emacs-shell","last_synced_at":"2026-04-15T16:02:57.451Z","repository":{"id":146277650,"uuid":"208460170","full_name":"terjesannum/emacs-shell","owner":"terjesannum","description":"Emacs tramp and shell setup","archived":false,"fork":false,"pushed_at":"2023-08-02T09:49:49.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T15:31:31.109Z","etag":null,"topics":["bash","emacs","shell"],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","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/terjesannum.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":"2019-09-14T15:29:17.000Z","updated_at":"2024-02-15T07:54:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"6456da99-426d-4e2c-b99a-cfa358784e63","html_url":"https://github.com/terjesannum/emacs-shell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/terjesannum/emacs-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terjesannum%2Femacs-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terjesannum%2Femacs-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terjesannum%2Femacs-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terjesannum%2Femacs-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terjesannum","download_url":"https://codeload.github.com/terjesannum/emacs-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terjesannum%2Femacs-shell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264962729,"owners_count":23689873,"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":["bash","emacs","shell"],"created_at":"2024-12-09T22:25:41.180Z","updated_at":"2026-04-15T16:02:57.384Z","avatar_url":"https://github.com/terjesannum.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emacs-shell\n\nSetup tramp and shell-mode for interactive shells and remote file editing. Supports local shells, ssh, sudo, docker and kubernetes.\n\n### Installation\n\nClone this repository and add to `load-path`:\n\n```lisp\n(add-to-list 'load-path \"~/.emacs.d/emacs-shell\")\n(require 'emacs-shell)\n```\n\n### Interactive shells\n\nTo start interactive shells, use these commands:\n\n| Command               | Description                      |\n| --------------------- | -------------------------------- |\n| `M-x localhost-shell` | Shell on localhost               |\n| `M-x ssh-shell`       | Shell on remote host             |\n| `M-x sudo-shell`      | Root shell (localhost or remote) |\n| `M-x docker-shell`    | Shell in local docker container  |\n| `M-x pod-shell`       | Shell in kubernetes pod          |\n\nBash will be started if available, and your `.bashrc` on the emacs host will be sourced in the remote shell. Shell history will also be saved in\nindividual files on the emacs host (`.emacs.d/shell-history` directory), so history is kept between sessions even if pods have been restarted etc.\n\n### Keybindings\n\nIn addition to the bindings from [shell-mode](https://www.gnu.org/software/emacs/manual/html_node/emacs/Shell-Mode.html), these keybindings are added:\n\n| Keys      | Where          | Description               |\n| --------- | -------------- | ------------------------- |\n| `S-C-n`   | global         | Start new localhost shell |\n| `C-p`     | shell-mode     | Previous history          |\n| `C-n`     | shell-mode     | Next history              |\n| `C-c C-c` | password input | Abort command             |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterjesannum%2Femacs-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterjesannum%2Femacs-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterjesannum%2Femacs-shell/lists"}