aboutsummaryrefslogtreecommitdiff
path: root/stow/rcs
diff options
context:
space:
mode:
Diffstat (limited to 'stow/rcs')
-rw-r--r--stow/rcs/.bashrc5
-rw-r--r--stow/rcs/.config/rcs/bash_aliases (renamed from stow/rcs/.bash_aliases)2
-rw-r--r--stow/rcs/.config/rcs/bash_vars (renamed from stow/rcs/.bash_vars)5
-rw-r--r--stow/rcs/.profile8
4 files changed, 12 insertions, 8 deletions
diff --git a/stow/rcs/.bashrc b/stow/rcs/.bashrc
index 9a70ccd..ea22e1f 100644
--- a/stow/rcs/.bashrc
+++ b/stow/rcs/.bashrc
@@ -48,8 +48,9 @@ wd="$pur"
umode="$blue"
PS1="${keys}[${wd}\u${keys}@${wd}\h${keys}]${wd}\w${umode}\$${def} "
-# Aliases are defined in $HOME/.bash_aliases for convenience.
-[ -f "$HOME/.bash_aliases" ] && . "$HOME/.bash_aliases"
+# Source general and device specific aliases
+[ -f "$XDG_CONFIG_HOME/rcs/bash_aliases" ] && . "$XDG_CONFIG_HOME/rcs/bash_aliases"
+[ -f "$XDG_CONFIG_HOME/rcs/device_aliases" ] && . "$XDG_CONFIG_HOME/rcs/device_aliases"
# fzf goodies
. /usr/share/fzf/key-bindings.bash
diff --git a/stow/rcs/.bash_aliases b/stow/rcs/.config/rcs/bash_aliases
index a4907f7..624edae 100644
--- a/stow/rcs/.bash_aliases
+++ b/stow/rcs/.config/rcs/bash_aliases
@@ -1,3 +1,5 @@
+# $XDG_CONFIG_HOME/rcs/bash_aliases: Non-standard file for aliases agruppation.
+
# General abreviations
alias r='tmux rename-window ranger; ranger; tmux rename-window bash'
alias v='nvim'
diff --git a/stow/rcs/.bash_vars b/stow/rcs/.config/rcs/bash_vars
index 61bdb8d..728196d 100644
--- a/stow/rcs/.bash_vars
+++ b/stow/rcs/.config/rcs/bash_vars
@@ -1,12 +1,9 @@
-# $HOME/.bash_vars: Non-standard file for environment variables agruppation.
+# $XDG_CONFIG_HOME/rcs/bash_vars: Non-standard file for environment variables agruppation.
###########
# General #
###########
-export XDG_CONFIG_HOME="$HOME/.config"
-export XDG_DATA_HOME="$HOME/.local/share"
-
export EDITOR="nvim"
export TERM="rxvt-256color"
export TERMINAL="urxvt"
diff --git a/stow/rcs/.profile b/stow/rcs/.profile
index 0c17991..e58d10f 100644
--- a/stow/rcs/.profile
+++ b/stow/rcs/.profile
@@ -12,8 +12,12 @@ if [ -n "$BASH_VERSION" ]; then
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
fi
-# Source environment variables
-[ -f "$HOME/.bash_vars" ] && . "$HOME/.bash_vars"
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_DATA_HOME="$HOME/.local/share"
+
+# Source general and device specific environment variables
+[ -f "$XDG_CONFIG_HOME/rcs/bash_vars" ] && . "$XDG_CONFIG_HOME/rcs/bash_vars"
+[ -f "$XDG_CONFIG_HOME/rcs/device_vars" ] && . "$XDG_CONFIG_HOME/rcs/device_vars"
# Login commands
sudo loadkeys es