Last active
August 29, 2015 14:02
-
-
Save tianon/baf2ab1b67510a72db7c to your computer and use it in GitHub Desktop.
fix stupid user-dirs.defaults
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo sed -ri 's/=.*/\L&/g; s/public$/public-share/; s/documents/docs/g; s/pictures/pics/g' /etc/xdg/user-dirs.defaults | |
| xdg-user-dirs-update --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # The values are relative pathnames from the home directory and | |
| # will be translated on a per-path-element basis into the users locale | |
| DESKTOP=desktop | |
| DOWNLOAD=downloads | |
| TEMPLATES=templates | |
| PUBLICSHARE=public-share | |
| DOCUMENTS=docs | |
| MUSIC=music | |
| PICTURES=pics | |
| VIDEOS=videos | |
| # Another alternative is: | |
| #MUSIC=docs/music | |
| #PICTURES=docs/pics | |
| #VIDEOS=docs/videos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment