summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2022-02-16 08:34:19 +0100
committerMehdi Sadeghi <mehdi@mehdix.org>2022-02-16 08:34:19 +0100
commitacc0e5f18e47b47c6a9c2aed64349a00d93cec63 (patch)
treec0ddcdc99bd8dd66706466c35227a58fabe5e081 /.bashrc
parenta45e09e96744030078bca68f1f6d9f3136c37d39 (diff)
Set term to foot. Fix loading env from su.
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 8311554..74bba13 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,5 +1,5 @@
# .bashrc
-[ -n "$ENV" ] && . "$ENV" || ([ -e ~/.env ] && . ~/.env)
+[ $0 != sh ] && [ -n "${ENV:=$HOME/.env}" ] && . "$ENV"
PS1='\[\033[1;33m\]$(prompt)\[\033[0m\]'
HISTCONTROL=ignoreboth:erasedups