blinksh / blink

Blink Mobile Shell for iOS (Mosh based)
https://blink.sh
GNU General Public License v3.0
6.18k stars 577 forks source link

Alias Support in Blink Terminal (Feature Request) #1006

Closed jessiebryan closed 10 months ago

jessiebryan commented 4 years ago

Hello,

Would it be possible to have the Blink terminal support aliases?

One use case is to connect to specific SSH hosts one after the other:

alias WebFarm='ssh web01 ; ssh web02'

Then whenever I'm in Blink Terminal, I can type: WebFarm (Tab Completion?) and it would ssh to web01 then when that session ends it would ssh to web02. Both web01 and web02 would be already defined Hosts in Blink.

Let me know your thoughts.

gstokkink commented 4 years ago

Would like to see this as well. I often have to execute certain SSH commands, and would be very useful to be able to set aliases.

oG14108149527Exl0Ftr7sY commented 3 years ago

Would be great with alias support in Blink for starting SSH tunnels

kkebo commented 3 years ago

I think Blink should be able to support the alias command easily. ios_system has already supported it since v2.7.0, so just update ios_system (if Blink uses older version) and add this entry into commandDictionary.plist. Then, Blink can run the alias command.

oG14108149527Exl0Ftr7sY commented 3 years ago

Re: ...so just update ios_system...

Question: This requires a jailbroken iPhone?

If, not.

How do I add the this entry to the "commandDictionary.plist"?

kkebo commented 3 years ago

You can't do it. My comment is not a user perspective, but a developer perspective.

oG14108149527Exl0Ftr7sY commented 3 years ago

Thank you for clarifying. Then I will have to continue to use Textexpander as a replacement to get similar functionality.

oG14108149527Exl0Ftr7sY commented 3 years ago

This is a list over Textexpander optimized apps:

https://textexpander.com/textexpander-ios/apps

This is the Textexpander SDK: https://textexpander.com/textexpander-ios/sdk

It would be great if Blink could be enhanced for Textexpander with the Textexpander SDK.

carloscabanero commented 10 months ago

We support now this flows through our Snips functionality. We will be coming up with easier ways to running Snips as well soon. Closing.