Ask / Submit
2

Can Jolla terminal be run with different profiles on the same device?

asked 2015-01-01 14:18:53 +0200

rdmo gravatar image

updated 2015-02-01 19:07:04 +0200

If there would be a way to do this then I would be able to open terminals in different starting contexts more easily, or run whatever scripts or programs needed. I know there are ways to do this, like starting every terminal session with a menu, but I wish to be able to tap an icon and then just be in the terminal use context I set up.

edit retag flag offensive close delete

Comments

What do you mean by profiles or contexts when starting terminal app? Shell environment or giving options to bash script, or something else..?

foss4ever ( 2015-01-01 15:26:02 +0200 )edit

When the terminal opens it runs ~/bashrc. I would like to be able to run different .bashrc files from different icons in the HomeScreen.

For example, one icon would run a temporary alias group to let me enter datestamped data about what I am doing, storing it as text on my Jolla. A second icon would start in a specific directory, use different aliases, a prompt ($PS1) showing the weather, and remind me of routine items, a shopping list or an appointment.

An example alias, then, can be alias r="echo 'date %Y/%V/%u %H%:M:%S$1' >> ~/log/runs". The command r 5km in that case adds a time-stamped log entry to a text file.

rdmo ( 2015-01-01 16:04:35 +0200 )edit

contexts: situations in which I want to do one specific thing using a terminal.

profile: the parameters, scripts and terminal (scripted) workflow I use to do the thing.

rdmo ( 2015-01-07 12:48:47 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2015-01-13 20:59:02 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2015-03-27 00:29:16 +0200

rdmo gravatar image

These comments regarding .desktop files pretty much obviate the (what seem now to not actually be) issues mentioned in this question. Since the question concerns Terminal use it should be possible to pass all the parameters needed to do what I want. I'll close this bug when I eventually put up a few working examples here. Making this editable by all in case others want to chime in.

edit flag offensive delete publish link more
0

answered 2015-03-27 11:24:21 +0200

Acce gravatar image

updated 2015-03-27 11:27:21 +0200

Possibly not what you want, but as one solution you may download the app ShellEx and setup it to open e.g. bash in fingerterm with the --rcfile filename option

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-01-01 14:18:53 +0200

Seen: 372 times

Last updated: Mar 27 '15