aboutsummaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-04-06 00:11:54 -0400
committertdro <tdro@users.noreply.github.com>2020-04-06 00:11:54 -0400
commit7ef0e727405cbbf2973cace6f3f5aa5be0879792 (patch)
treef9b1a291dc8f5d0a74629f3b8a108e64a7330754 /.bash_profile
parent800b5b45c46b12891adfa091042f5c00c8873a31 (diff)
downloaddotfiles-7ef0e727405cbbf2973cace6f3f5aa5be0879792.tar.gz
dotfiles-7ef0e727405cbbf2973cace6f3f5aa5be0879792.tar.bz2
dotfiles-7ef0e727405cbbf2973cace6f3f5aa5be0879792.zip
.bashrc: Source profile and bashrc interchangeably
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile9
1 files changed, 6 insertions, 3 deletions
diff --git a/.bash_profile b/.bash_profile
index ea406fd..d8acd79 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -1,11 +1,11 @@
#!/bin/bash
# auto login
-[ "$EUID" -ne 0 ] && [ -z "$DISPLAY" ] && [ "$(tty)" = '/dev/tty1' ] && exec startx >/dev/null 2>&1;
+[ "$EUID" != 0 ] && [ -z "$DISPLAY" ] && [ "$(tty)" = '/dev/tty1' ] && exec startx >/dev/null 2>&1;
# set prompt
-[ "$EUID" -ne 0 ] && export PS1='\[\e[0;34m\]\W \$\[\e[0m\] ';
-[ "$EUID" -eq 0 ] && export PS1='\[\e[1;31m\]\W \$\[\e[0m\] ';
+[ "$EUID" != 0 ] && export PS1='\[\e[0;34m\]\W \$\[\e[0m\] ';
+[ "$EUID" = 0 ] && export PS1='\[\e[1;31m\]\W \$\[\e[0m\] ';
# ssh set prompt
[ -n "$SSH_CLIENT" ] && [ "$EUID" -ne 0 ] && export PS1='\[\e[1;32m\]\W \$\[\e[0m\] ';
@@ -34,3 +34,6 @@ export FZF_DEFAULT_OPTS="--color=fg:255,hl:9 \
# source frequently changed files
. /etc/profile.d/theme.sh
+
+# source bashrc
+[ -z "$DISPLAY" ] && . "$HOME/.bashrc"