Skip to content

Commit cc99d3e

Browse files
committed
Use new elvish default config location
Moves aliases config to `~/.config/elvish/aliases` Ref #22
1 parent 6c9fab6 commit cc99d3e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

alias.elv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use re
77
use str
88

9-
var dir = ~/.elvish/aliases
9+
var dir = ~/.config/.elvish/aliases
1010

1111
var arg-replacer = '{}'
1212

alias.org

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#+title: Aliases for Elvish
1+
[O#+title: Aliases for Elvish
22
#+author: Diego Zamboni
33
#+email: diego@zzamboni.org
44

@@ -58,7 +58,7 @@ The =alias:save= command can receive one or more alias names, or with the =&all=
5858
alias:save &verbose &all
5959
#+end_src
6060

61-
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.
61+
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.
6262

6363
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:
6464

@@ -123,7 +123,7 @@ alias:rm alias
123123
The =alias:dir= variable determines where the alias files will be saved.
124124

125125
#+begin_src elvish
126-
var dir = ~/.elvish/aliases
126+
var dir = ~/.config/.elvish/aliases
127127
#+end_src
128128

129129
The =alias:arg-replacer= variable contains the string that will be used to indicate where the arguments will be inserted in the alias expansion.

0 commit comments

Comments
 (0)