From f050240346d293521a9d5fafca47a4c8099085fe Mon Sep 17 00:00:00 2001 From: not Date: Tue, 4 Jan 2022 11:39:59 -0600 Subject: [PATCH] Use new elvish default config location Moves aliases config to `~/.config/elvish/aliases` Ref #22 --- alias.elv | 2 +- alias.org | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alias.elv b/alias.elv index 8c98d5a..251eb99 100644 --- a/alias.elv +++ b/alias.elv @@ -6,7 +6,7 @@ use re use str -var dir = ~/.elvish/aliases +var dir = ~/.config/.elvish/aliases var arg-replacer = '{}' diff --git a/alias.org b/alias.org index 1680cfc..bc3eda3 100644 --- a/alias.org +++ b/alias.org @@ -58,7 +58,7 @@ The =alias:save= command can receive one or more alias names, or with the =&all= alias:save &verbose &all #+end_src -When saved, each alias is stored in a separate file under =$alias:dir= (=~/.elvish/aliases/= by default). Saved aliases are automatically loaded when the module initializes. +When saved, each alias is stored in a separate file under =$alias:dir= (=~/.config/.elvish/aliases/= by default). Saved aliases are automatically loaded when the module initializes. Note that due to Elvish's scoping rules, if you want to use a module from your alias, you need to load the module as well by specifying the =&use= option when defining the alias, which receives a list of module names to load, like this: @@ -123,7 +123,7 @@ alias:rm alias The =alias:dir= variable determines where the alias files will be saved. #+begin_src elvish - var dir = ~/.elvish/aliases + var dir = ~/.config/.elvish/aliases #+end_src The =alias:arg-replacer= variable contains the string that will be used to indicate where the arguments will be inserted in the alias expansion.