Merge pull request #233 from iven/xdg

This commit is contained in:
Bruno Pinto 2014-10-24 08:50:55 -02:00
commit f3dcaa3806
2 changed files with 15 additions and 0 deletions

View File

@ -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)

14
plugins/xdg/xdg.load Normal file
View File

@ -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