Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kwiesmueller/hostrewind

A simple tool for rewinding hostnames (and handling a custom suffix)
https://github.com/kwiesmueller/hostrewind

Last synced: 10 days ago
JSON representation

A simple tool for rewinding hostnames (and handling a custom suffix)

Awesome Lists containing this project

README

        

# Hostrewind

## Install
```shell
go get -u github.com/kwiesmueller/hostrewind/bin/hostrewind
```

```shell
make prepare
make install
```

## Params
* `-sm`: handles the custom suffix smhss.de (remove or append when necessary)

## Usage Samples
Not that the configured custom domain is always being stripped when being at the start
```
ssh $(echo "lf.office.build" | hostrewind -sm)
-> build.office.lf.smhss.de

ssh $(echo "build.office.lf.smhss.de" | hostrewind)
-> lf.office.build
```

## Example Aliases
```
function sssh() {
ssh $(echo "$1" | hostrewind -sm)
}
```