#!/bin/js if( !window['~/.profile.js'] ){ // do once (remember /etc/profile gets sources multiple times!) const isoterminal = document.querySelector('[isoterminal]').components.isoterminal.isoterminal const scene = document.querySelector('a-scene') window.helloworld = function(){ alert("hello world") return "hello world" } window['~/.profile.js'] = true }