diff options
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -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` |
