summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2017-08-25 19:17:10 +0200
committerTharre <tharre3@gmail.com>2017-08-25 19:17:10 +0200
commitd3f24ecae44e04f421d651f0970a296a27d8da96 (patch)
tree6fb5f9c7711fa5fd70efa98fa5518d3038cf9d3d
parentaccc943fc885d8381d796f26d2800f73022904fc (diff)
downloaddotfiles-d3f24ecae44e04f421d651f0970a296a27d8da96.tar.gz
dotfiles-d3f24ecae44e04f421d651f0970a296a27d8da96.tar.xz
dotfiles-d3f24ecae44e04f421d651f0970a296a27d8da96.zip
zsh: add set_xdg_dirs
-rw-r--r--.zshrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 171c467..14a35a9 100644
--- a/.zshrc
+++ b/.zshrc
@@ -125,6 +125,20 @@ function play {
-g "$*") --no-video
}
+function set_xdg_dirs {
+ xdg-user-dirs-update --set DESKTOP ~/var/desktop
+ xdg-user-dirs-update --set DOWNLOAD ~/var/downloads
+ xdg-user-dirs-update --set TEMPLATES ~/var/templates
+ xdg-user-dirs-update --set PUBLICSHARE ~/share/public
+ xdg-user-dirs-update --set DOCUMENTS ~/var/documents
+ xdg-user-dirs-update --set MUSIC ~/media/music
+ xdg-user-dirs-update --set PICTURES ~/media/pictures
+ xdg-user-dirs-update --set VIDEOS ~/media/videos
+
+ rmdir ~/Desktop ~/Downloads ~/Templates ~/Public ~/Documents ~/Music \
+ ~/Pictures ~/Videos
+}
+
# update
function update_dotfiles() {
dotfiles="$HOME/dotfiles"