View Single Post
Old 10-03-2016, 05:26 AM   #224
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by lucida View Post
Is it possible to add builtin profile/bashrc support in kterm, without modifying stock /etc/profile.
It should be possible to load custom profile by setting ENV variable (busybox sh should support it):
Code:
kterm -E "ENV=/path/to/custom/profile"
Generally if you just want to set some environment variables use kterm -E option, e.g.
Code:
kterm -E "PATH=$PATH:/some/path" -E "ANOTHER_VAR="xxx"
If you need something more complex you can also run a script in the terminal with kterm -e /path/to/script.sh option. The script should end with starting new shell, e.g.
Code:
#!/bin/sh
command1
command2
/bin/sh
baf is offline   Reply With Quote