docs(shell, scripts): move dotfiles out of $HOME
All checks were successful
deploy / build (push) Successful in 2m37s

This commit is contained in:
2024-02-21 04:40:08 +01:00
parent 48fb243c69
commit 05808c98af
2 changed files with 73 additions and 60 deletions

View File

@@ -2114,3 +2114,26 @@ else
curl http://v2.wttr.in/Aubervilliers
end
#+END_SRC
** Wrappers
:PROPERTIES:
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes
:END:
In order to avoid clutter in my =$HOME= directory, I have some wrappers
around some commands that simply add some options by default.
#+begin_src sh :tangle ~/.local/bin/adb
HOME="$XDG_DATA_HOME"/android adb
#+end_src
#+begin_src sh :tangle ~/.local/bin/mbsync
mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc
#+end_src
#+begin_src sh :tangle ~/.local/bin/wget
wget --hsts-file="$XDG_DATA_HOME"/wget-hsts
#+end_src
#+begin_src sh :tangle ~/.local/bin/yarn
yarn --use-yarnrc "$XDG_CONFIG_HOME"/yarn/config
#+end_src