summaryrefslogtreecommitdiff
path: root/.shells/exports.sh
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-02-01 10:43:23 +0200
committerThanos Apollo <[email protected]>2023-02-01 10:43:23 +0200
commit45fad8817dbb6b1cd2ab96b754a0d21c421a2f20 (patch)
treea704c07ff0c6b35cebedb7db12f9b5ccb53f7b4f /.shells/exports.sh
parentffb9af908e25ab2f757025d47502bf5b5f9506bf (diff)
Re-Add .shells
Diffstat (limited to '.shells/exports.sh')
-rw-r--r--.shells/exports.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/.shells/exports.sh b/.shells/exports.sh
new file mode 100644
index 0000000..cda78fd
--- /dev/null
+++ b/.shells/exports.sh
@@ -0,0 +1,15 @@
+# Export 'SHELL' to child processes. Programs such as 'screen'
+# honor it and otherwise use /bin/sh.
+export SHELL
+export PATH="$PATH:~/.local/share/flatpak/exports/bin/"
+
+if [[ $- != *i* ]]
+then
+ # We are being invoked from a non-interactive shell. If this
+ # is an SSH session (as in "ssh host command"), source
+ # /etc/profile so we get PATH and other essential variables.
+ [[ -n "$SSH_CLIENT" ]] && source /etc/profile
+
+ # Don't do anything else.
+ return
+fi \ No newline at end of file