summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2021-05-26 11:30:38 +0200
committerMehdi Sadeghi <mehdi@mehdix.org>2021-05-26 11:43:30 +0200
commit6d9108ce5379aeacc7373458aa556c1c0cba2638 (patch)
tree257364d7d7c3607c68b948793a3ffc37f66dd45f
parent2f18471f580c82bb828bf5189418d0479c8909fd (diff)
Fix loading bashrc and env.
-rw-r--r--.bashrc2
-rw-r--r--.config/mutt/muttrc2
-rw-r--r--.profile2
3 files changed, 4 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 4564ab2..f1a899e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,4 +1,4 @@
-[ -n $ENV ] && . $ENV
+[ -n "$ENV" ] && . "$ENV" || [ -e .env ] && . .env
PS1="\e[1;33m\u@\h:\W \e[0m"
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
index af71e9f..741cdd4 100644
--- a/.config/mutt/muttrc
+++ b/.config/mutt/muttrc
@@ -15,3 +15,5 @@ set smtp_url = smtp://$imap_user@mehdix.org:587/
# Mailing Lists
lists sr.ht-discuss
set reply_to = "ask-yes"
+
+source ~/.config/mutt/`hostname`
diff --git a/.profile b/.profile
index 873899c..75ead8a 100644
--- a/.profile
+++ b/.profile
@@ -21,4 +21,4 @@ export _JAVA_AWT_WM_NONREPARENTING=1
export GDK_BACKEND=wayland
[ -e .config/$(hostname).profile ] && . .config/$(hostname).profile
-[ $SHELL = "/bin/bash" ] && [ -f ~/.bashrc ] && . ~/.bashrc
+[ $0 = bash ] && [ -f ~/.bashrc ] && . ~/.bashrc