diff --git a/plugins/README.markdown b/plugins/README.markdown index 9b5ad14..1901725 100644 --- a/plugins/README.markdown +++ b/plugins/README.markdown @@ -27,4 +27,5 @@ * __sublime__ - creates 'subl' command line shortcut to launch [Sublime Text editor](http://sublimetext.com/) * __tmux__ - Plugin to start tmux with support for 256 colours * __vi-mode__ - Basic vi key bindings emulation for fish +* __xdg__ - Setup [xdg](http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html) environment on Linux * __z__ - integration with [z](https://github.com/rupa/z) (autojump alternative) diff --git a/plugins/xdg/xdg.load b/plugins/xdg/xdg.load new file mode 100644 index 0000000..c945f7e --- /dev/null +++ b/plugins/xdg/xdg.load @@ -0,0 +1,14 @@ +# System +set -x XDG_DATA_DIRS /usr/share /usr/local/share +set -x XDG_CONFIG_DIRS /etc/xdg + +# User +set -x XDG_CACHE_HOME $HOME/.cache +set -x XDG_CONFIG_HOME $HOME/.config +set -x XDG_DATA_HOME $HOME/.local/share +set -x XDG_DESKTOP_DIR $HOME/Desktop +set -x XDG_DOWNLOAD_DIR $HOME/Downloads +set -x XDG_DOCUMENTS_DIR $HOME/Documents +set -x XDG_MUSIC_DIR $HOME/Music +set -x XDG_PICTURES_DIR $HOME/Pictures +set -x XDG_VIDEOS_DIR $HOME/Videos