summaryrefslogtreecommitdiff
path: root/config/shell/profile
diff options
context:
space:
mode:
Diffstat (limited to 'config/shell/profile')
-rw-r--r--config/shell/profile25
1 files changed, 15 insertions, 10 deletions
diff --git a/config/shell/profile b/config/shell/profile
index 0504af9..ef518c4 100644
--- a/config/shell/profile
+++ b/config/shell/profile
@@ -1,21 +1,26 @@
# Directories and Files
-export XDG_BIN_DIR="$HOME/.local/bin"
-export XDG_CACHE_HOME="$HOME/.cache"
-export XDG_CONFIG_HOME="$HOME/.config"
-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 XDG_BIN_DIR="${HOME}/.local/bin"
+export XDG_CACHE_HOME="${HOME}/.cache"
+export XDG_CONFIG_HOME="${HOME}/.config"
+export XDG_DATA_HOME="${HOME}/.local/share"
+export XDG_STATE_HOME="${HOME}/.local/state"
+
+export BASHRC="${HOME}/.bashrc"
+export ZSHRC="${HOME}/.zshrc"
+export XINITRC="${XDG_CONFIG_HOME}/x11/xinitrc"
mkdir -p "${XDG_BIN_DIR}"
-PATH="${XDG_BIN_DIR}":$PATH
+export PATH="${XDG_BIN_DIR}:${PATH}"
# Environment variables
[ -x "$(command -v vim)" ] && export EDITOR="vim"
[ -x "$(command -v nvim)" ] && export EDITOR="nvim"
[ -x "$(command -v alacritty)" ] && export TERMINAL="alacritty"
[ -x "$(command -v st)" ] && export TERMINAL="st"
-[ -x "$(command -v qutebrowser)" ] && export BROWSER="qutebrowser"
[ -x "$(command -v firefox)" ] && export BROWSER="firefox"
+[ -x "$(command -v qutebrowser)" ] && export BROWSER="qutebrowser"
+
+export MAKEFLAGS="-j8" # Reduce compile times
-export MAKEFLAGS="-j8" # Reduce compile times
+# Source bashrc for tty
+[ -n "${BASH_VERSION}" ] && [ -f "${BASHRC}" ] && . "${BASHRC}"