Can Jolla terminal be run with different profiles on the same device?
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.
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 )editWhen 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
rdmo ( 2015-01-01 16:04:35 +0200 )editalias
, then, can be alias r="echo 'date %Y/%V/%u %H%:M:%S
$1' >> ~/log/runs". The commandr 5km
in that case adds a time-stamped log entry to a text file.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