summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-06-22 13:20:12 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2024-06-22 13:20:12 +0100
commit24c6f094699c150192fbc0de27176236b7357586 (patch)
tree15cfa7364c6e8976e20e3edc3e5b68ef9481fde7
parentc19bc146108c5da97ee1a3e92ee2820db696eb63 (diff)
emacs: Keep Eshell aliases in the Emacs directory
-rw-r--r--emacs/alias3
-rw-r--r--emacs/init.el1
2 files changed, 4 insertions, 0 deletions
diff --git a/emacs/alias b/emacs/alias
new file mode 100644
index 0000000..92ab4ec
--- /dev/null
+++ b/emacs/alias
@@ -0,0 +1,3 @@
+alias k kubectl $*
+alias s swift $*
+alias spm swift package $*
diff --git a/emacs/init.el b/emacs/init.el
index b2047b2..0b529eb 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -176,6 +176,7 @@
(use-package eshell
:bind (("C-c e" . eshell))
:custom ((eshell-cmpl-ignore-case t)
+ (eshell-aliases-file (expand-file-name "alias" user-emacs-directory))
(eshell-directory-name (my/cache-file-name "eshell"))
(eshell-scroll-show-maximum-output nil)))