aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-10-22 10:54:37 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2020-10-22 10:54:37 +0200
commit1b1f68325df1ea7521223bb689e794f2b32c039a (patch)
tree20766e66f865fe555616c6083d4a45a78851ba46 /.bashrc
parent3992f19b8e8511c2fdba6813976aa4fc75061408 (diff)
downloaddotfiles-1b1f68325df1ea7521223bb689e794f2b32c039a.tar.gz
dotfiles-1b1f68325df1ea7521223bb689e794f2b32c039a.zip
emacs: fixed directories
- Use `user-emacs-directory` instead of `~/.emacs.d` directly. - Use XDG-related environment variables, which are set on the `bashrc` file. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc26
1 files changed, 16 insertions, 10 deletions
diff --git a/.bashrc b/.bashrc
index 3122124..eb99159 100644
--- a/.bashrc
+++ b/.bashrc
@@ -14,6 +14,22 @@ else
fi
##
+# Utility functions.
+
+# Sources the given file if it really exists.
+source_maybe() {
+ if [ -f "$1" ]; then
+ source "$1"
+ fi
+}
+
+##
+# XDG: sourcing the variables on $HOME/.config/user-dirs.dirs might ease up the
+# configuration of other tools.
+
+source_maybe "$HOME/.config/user-dirs.dirs"
+
+##
# Basics.
# Beautifying ls command.
@@ -27,16 +43,6 @@ alias ..='cd ..'
alias cd..='cd ..'
##
-# Utility functions.
-
-# Sources the given file if it really exists.
-source_maybe() {
- if [ -f "$1" ]; then
- source "$1"
- fi
-}
-
-##
# Editors & terminals.
# Set GNU Emacs as the default editor. You can find this `emacsclient-a-nw`