GithubHelp home page GithubHelp logo

hauleth / xdg-rlz Goto Github PK

View Code? Open in Web Editor NEW
33.0 8.0 2.0 5 KB

Configure non-conforming applications to use XDG Base Directory specification

Home Page: https://hauleth.dev/post/stop-spreading-crap-at-my-home/

Shell 100.00%
xdg xdg-compliance xdg-user-dirs

xdg-rlz's Introduction

XDG Base Directory Specification rulez

Installation

  1. Download please-use-xdg.sh
  2. Source it in your .profile or shell configuration file

Supported shells

  • Bash
  • ZSH
  • Fish

Maybe other, but I haven't tested it in other shells.

List of shame

  • Ack
    • $HOME/.ackrc -> $XDG_CONFIG_HOME/ack/ackrc
  • Atom
    • $HOME/.atom -> $XDG_CONFIG_HOME/atom
  • AWS CLI
    • $HOME/.aws -> $XDG_CONFIG_HOME/aws
  • Azure CLI
    • $HOME/.azure -> $XDG_DATA_HOME/azure
  • Bundler
    • $HOME/.bundle/config -> $XDG_CONFIG_HOME/bundle/config
    • $HOME/.bundle/cache -> $XDG_CACHE_HOME/bundle
    • $HOME/.bundle/plugin -> $XDG_DATA_HOME/bundle/plugin
  • Cargo
    • $HOME/.cargo -> $XDG_DATA_HOME/cargo
  • Docker
    • $HOME/.docker -> $XDG_CONFIG_HOME/docker
  • Docker Machine
    • $HOME/.docker/machine -> $XDG_DATA_HOME/docker/machine
  • GnuPG
    • $HOME/.gnupg -> $XDG_CONFIG_HOME/gnupg
  • Hex †
    • $HOME/.hex/hex.config -> $XDG_CONFIG_HOME/hex/hex.config
    • $HOME/.hex/{cache.ets,packages} -> $XDG_CACHE_HOME/hex/{cache.ets,packages}
    • $HOME/.hex/docs -> $XDG_DATA_HOME/hex/docs
  • Less
    • $HOME/.lesskey -> $XDG_CONFIG_HOME/less/lesskey
    • $HOME/.lesshst -> $XDG_STATE_HOME/less/history
  • Mathematica
    • $HOME/.Mathematica -> $XDG_CONFIG_HOME/Mathematica
  • Mix †
    • $HOME/.mix/config.exs -> $XDG_CONFIG_HOME/mix/config.exs
    • $HOME/.mix/{archives,escripts} -> $XDG_DATA_HOME/mix
  • Node.js
    • $HOME/.node_repl_history -> $XDG_STATE_HOME/node/repl_history
  • NotMuch
    • $HOME/.notmuch-config -> $XDG_CONFIG_HOME/notmuch/config
  • NV †
    • $HOME/.nv -> $XDG_CACHE_HOME/nv
  • NVM
    • $HOME/.nvm -> $XDG_DATA_HOME/nvm
  • Parallel
    • $HOME/.parallel -> $XDG_CONFIG_HOME/parallel
  • PostgreSQL
    • $HOME/.psqlrc -> $XDG_CONFIG_HOME/postgres/rc
    • $HOME/.psql_history -> $XDG_STATE_HOME/postgres/history
    • $HOME/.pgpass -> $XDG_CONFIG_HOME/postgres/pass
    • $HOME/.pg_service.conf -> $XDG_CONFIG_HOME/postgres/service.conf
  • Readline
    • $HOME/.inputrc -> $XDG_CONFIG_HOME/readline/inputrc
  • Rustup
    • $HOME/.rustup -> $XDG_DATA_HOME/rustup
  • Vagrant
    • $HOME/.vagrant.d -> $XDG_DATA_HOME/vagrant
  • WeeChat
    • $HOME/.weechat -> $XDG_CONFIG_HOME/weechat

† - it partially uses XDG specs, but fall back to default when XDG variables aren't present

This list is not full. If you find something that you are using, please add it and spread the word.

LICENSE

Blue Oak Model License 1.0.0

xdg-rlz's People

Contributors

gaelicwizard avatar hauleth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xdg-rlz's Issues

Would you accept additions from lewiscowper/dotcrap?

I came across this repo from a post on lobste.rs, and was thankful that someone else had the same thoughts I had. I maintain a similar project to clear out "dotcrap" files into XDG specified directories, and I was wondering whether you'd be open to adding some of the entries here into your project, and collaborate on it in the future. Mine is predominantly (but not specifically) macOS/zsh based, but I see no reason exporting env variables would be shell or OS specific, other than the shell/OS specific files themselves.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.