summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSüleyman Fərəcli <suleyman@farajli.net>2025-06-21 21:42:13 +0400
committerGitHub <noreply@github.com>2025-06-21 21:42:13 +0400
commita9dee19196765311d0d8878aaa20e480cb1c88d5 (patch)
tree92aefc42f6d3bc014a00d97304208f01db788fd5
parent96c0ea6a227b5c2b7f82d8707fc82fdd9a4d9075 (diff)
parent6a3feffb770d042abb86e97a0c57d2d73122b734 (diff)
Merge pull request #15 from sfarajli/dev
feat (shell): source .bashrc for interactive TTY sessions
-rw-r--r--config/shell/profile4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/shell/profile b/config/shell/profile
index 0504af9..9125131 100644
--- a/config/shell/profile
+++ b/config/shell/profile
@@ -6,6 +6,7 @@ export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
export ZSHRC="$XDG_CONFIG_HOME/zsh/zshrc"
+export BASHRC="$HOME/.bashrc"
mkdir -p "${XDG_BIN_DIR}"
PATH="${XDG_BIN_DIR}":$PATH
@@ -19,3 +20,6 @@ PATH="${XDG_BIN_DIR}":$PATH
[ -x "$(command -v firefox)" ] && export BROWSER="firefox"
export MAKEFLAGS="-j8" # Reduce compile times
+
+# Source bashrc for tty
+[ -n "$BASH_VERSION" ] && [ -f "${BASHRC}" ] && . "${BASHRC}"