Unable to source zshrc during a terminal emulator’s startup

Spread the love

Installed Tilix terminal emulator on Ubuntu 16.04 virtual machine and configured a json theme to my liking named theme.json.
I have added the same environment variables and aliases both in the .bashrc and the .zshrc as follows:
export VAR1=42
alias mydir=/path-to-my-dir/mydir

Created a launcher shortcut (tilix.desktop) which runs a script (tilix_launcher.sh) as follows:
# tilix.desktop
[Desktop Entry]
Comment=Launch Tilix

# tilix_launcher.sh
tilix –session /path-to-json/theme.json

Confusingly, if on the ‘normal’ terminal source the zshrc and then open Tilix, the session has visibility of the zshrc; I do not understand how to automate that within a script (i.e. tilix_launcher.sh).

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

$ tilix –version
Tilix version: 1.9.1
VTE version: 0.42
GTK Version: 3.18.9

The problem is that whenever I launch Tilix (with or without the launcher script), the environment variables and the aliases are not known to Tilix’s session; have to source ~/.zshrc for them to work.
Tried to add this source command within the tilix_launcher.sh but it still does not work.

X ITM Cloud News


Leave a Reply

Next Post

Block Network Manager from showing a specific wifi or even using it

Sat Sep 12 , 2020
Spread the love          I think I have a unique issue here I need some help with… My 15 year old has gotten tricky on me and is using my neighbors wifi to go around my router protections (I use opendns). I have asked my neighbor to change their wifi password, but […]

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware