feat(emacs): eshell aliases from home.shellAliases
All checks were successful
build / build (push) Successful in 3m1s
All checks were successful
build / build (push) Successful in 3m1s
This commit is contained in:
@@ -31,6 +31,17 @@ in {
|
|||||||
treesit.enable = true;
|
treesit.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
ESHELL_ALIASES_FILE = pkgs.writeText "eshell-aliases" ''
|
||||||
|
alias cdp syd-project-cd
|
||||||
|
alias js js --no-pager
|
||||||
|
${lib.concatMapAttrsStringSep
|
||||||
|
"\n"
|
||||||
|
(alias: value: "alias ${alias} ${value} $*")
|
||||||
|
config.home.shellAliases}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
sydnix.emacs = {
|
sydnix.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
|||||||
@@ -150,7 +150,9 @@ if FILE-NAME has no TRAMP prefix."
|
|||||||
(eshell-last-dir-ring-file-name (file-name-concat
|
(eshell-last-dir-ring-file-name (file-name-concat
|
||||||
syd-eshell-data-dir "lastdir"))
|
syd-eshell-data-dir "lastdir"))
|
||||||
(eshell-prompt-function #'syd-eshell--prompt-fn)
|
(eshell-prompt-function #'syd-eshell--prompt-fn)
|
||||||
(eshell-prompt-regexp syd-eshell--prompt-regexp))
|
(eshell-prompt-regexp syd-eshell--prompt-regexp)
|
||||||
|
(eshell-aliases-file (or (getenv "ESHELL_ALIASES_FILE")
|
||||||
|
eshell-aliases-file)))
|
||||||
:general
|
:general
|
||||||
(:keymaps 'syd-leader-open-map
|
(:keymaps 'syd-leader-open-map
|
||||||
"e" #'syd-toggle-eshell)
|
"e" #'syd-toggle-eshell)
|
||||||
|
|||||||
Reference in New Issue
Block a user