summaryrefslogtreecommitdiff
path: root/.shells/exports.sh
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-09-03 19:13:07 +0300
committerThanos Apollo <[email protected]>2023-09-03 19:13:07 +0300
commit7ea582167c9b87cb23bcda9ee99bca28f6e6f142 (patch)
treefafb4ab72c039e7379e4741d7834ce34ffd1d9cd /.shells/exports.sh
parent023f598e3a50128b904270e4de6a46b63a726344 (diff)
Add shell configuration
Diffstat (limited to '.shells/exports.sh')
-rw-r--r--.shells/exports.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/.shells/exports.sh b/.shells/exports.sh
new file mode 100644
index 0000000..3e3d03f
--- /dev/null
+++ b/.shells/exports.sh
@@ -0,0 +1,20 @@
+# Export 'SHELL' to child processes. Programs such as 'screen'
+# honor it and otherwise use /bin/sh.
+export SHELL
+export PATH
+export PATH=/home/$USER/.local/bin:$PATH
+export EDITOR="emacsclient"
+export GIT_EDITOR="emacsclient"
+export SBCL_HOME="/usr/lib/sbcl/"
+export PATH=$PATH:~/.roswell/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