Giter VIP home page Giter VIP logo

iterm-flow's Introduction

iterm-flow

Alfred workflow for auto login in iterm2

Introduce

Common login case is easy, you can send ssh root@ip and input passwd. Also you can use ssh-keygen to generate key for no password login. According to above information, you can make simple workflow like alfred-ssh, making login more smart.

Alfred-ssh which reading login information from hosts config has some disadvantages.

  1. When machines number grow, we can't find dest machine info quickly.
  2. In some cases, our login server routine is localhost->jumper->dest_server, so Alfred-ssh cannot work well.

What iterm-flow do is

  1. Providing gen.go for generating alfred env through machine info input.
  2. Providing efficient way for search machine info.
  3. Providing quick login method with less artificial work.

Installation

  1. Download latest version and install it.
  2. Add Alfred workflow env variables.
    1. You can use gen.go to generate env gen_env
    2. Or you can generate env by yourself:
      Adding a server, you should add an env Name is server name, Value is json format, the field with omitempty is optional.
      type Node struct {
      Tags []string `json:"tags"`
      IP     string `json:"ip"`
      Port   string `json:"port,omitempty"`
      User   string `json:"user,omitempty"`
      Passwd string `json:"passwd,omitempty"`
      Depend string `json:"depend,omitempty"`
      }

Manual

  1. Quickly login login
  2. About login passwd:
    Passwd is very important, I recommend you don't generate passwd when generate json env. You can call the password manager of Iterm2 by option+comman+f. More you can do like this passwd

Features

  1. Managing server login information [Add/Del/List]
  2. Auto login with/without dependency node
  3. Login with passwd or login without passwd
  4. Auto set current iterm2 tab title as server name[env Name]

Build

// run gen.go
# go run tools/gen.go
// build list.go
# go build list.go

Acknowledgement

  1. I get much info from vitorgalvao/custom-alfred-iterm-scripts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.