Comments (3)
Sorry for the late answer.
First I didn't find a way to define a terminal profile when starting the terminal with a command from the command line. Do you know a way?
Second I try to avoid to build a settings gui for the extension as long as possible. The extension should be as simple as possible. At least that is my opinion.
But if someone will develop your feature request I have no problem to include this change in this extension.
from gnome-shell-extension-sshsearch.
Hello,
There is a way to open a gnome-terminal with profile from command...
gnome-terminal --profile=X
Maybe a way is to create profiles with the same name of the hostname and that could match the profile with all the options that you could customize from the gnome-terminal GUI.
What do you think?
regards..
RF
from gnome-shell-extension-sshsearch.
Hello kaj,
I just modified the script to add compatibility with profiles. I'm using TERMINAL_APP='terminator', and you need to modify the following lines.
BEFORE:
if port == SSH_DEFAULT_PORT:
# don't call with the port option, because the host definition
# could be from the ~/.ssh/config file
GLib.spawn_command_line_async('%s -e "ssh %s"' % (TERMINAL_APP, target))
else:
GLib.spawn_command_line_async('%s -e "ssh -p %s %s"' % (TERMINAL_APP, hoststring, port, target))
AFTER:
if port == SSH_DEFAULT_PORT:
# don't call with the port option, because the host definition
# could be from the ~/.ssh/config file
GLib.spawn_command_line_async('%s -p %s -e "ssh %s"' % (TERMINAL_APP, hoststring, target))
else:
GLib.spawn_command_line_async('%s -p %s -e "ssh -p %s %s"' % (TERMINAL_APP, hoststring, port, target))
Please, note that your profile name in terminator needs to match the hoststring var, which is the name of the server that the script will parse in the ~/.ssh/config... else, the terminator will use the default profile.
Hope this help.
Best regards
Ricky Fletcher
from gnome-shell-extension-sshsearch.
Related Issues (16)
- Extension doesn't work of value host is not capitalized HOT 2
- Update to v3.8.1 HOT 1
- Failed to execute --command HOT 2
- Work with xfce4-terminal?
- filter out duplicate search results
- Fails if org.gnome.desktop.default-applications.terminal exec is not set HOT 2
- Terminal just opens, no command being executed HOT 1
- Please update to Gnome 3.12
- Search does not show all results
- Not working with 3.14
- when several hostnames are defined, hostname is one string HOT 2
- Doesn't look at /etc/ssh/ssh_known_hosts HOT 1
- Is it possible to search in the the `Alt+F2` run dialog? HOT 1
- Do not parse lines which are commented out (starting with `#`) HOT 3
- only 1 line of results shown HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-extension-sshsearch.