https://github.com/dougeverly/ssh_config_to_iterm_profiles
Generate iTerm2 profiles from an ssh config file.
https://github.com/dougeverly/ssh_config_to_iterm_profiles
crystal iterm iterm2 script
Last synced: 10 days ago
JSON representation
Generate iTerm2 profiles from an ssh config file.
- Host: GitHub
- URL: https://github.com/dougeverly/ssh_config_to_iterm_profiles
- Owner: DougEverly
- License: other
- Created: 2019-01-27T14:07:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-27T14:23:53.000Z (over 7 years ago)
- Last Synced: 2025-02-23T03:25:29.099Z (over 1 year ago)
- Topics: crystal, iterm, iterm2, script
- Language: Crystal
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh_config_to_iterm_profiles
This script reads the ssh_confg for host definitions and generates a dynamic iTerm profiles.json.
Profiles are assigned the default profile by default so that profile settings are inherited. Custom parent profiles can be defined in iTerm and associated with hosts by changing the `profile_parents` hash with the approporate pattern.
## Installation
git clone this repo.
build
```
crystal build ssh_config_to_iterm_profiles.cr
```
## Usage
```
Usage: ssh_config_to_iterm_profiles [arguments]
-c SSH_CONFIG, --ssh-config=SSH_CONFIG
path to ssh config
-p DYNAMIC_PROFILE_DIR, --profile-dir=DYNAMIC_PROFILE_DIR
path to iTerm2 dynamic profiles dir
-n PROFILE_NAME, --outnameput=PROFILE_NAME
generated profile name
-v, --verbose verbose
-d, --defaults Show defaults
-h, --help Show this help
```
## Running As Script
Crystal can be run via source code. Put command arguments after the `--`
```
crystal ssh_config_to_iterm_profiles.cr -- -h
```
## Development
TODO: Write development instructions here
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Doug Everly](https://github.com/your-github-user) - creator and maintainer